PITRの解説
|
|
- しのぶ つちた
- 5 years ago
- Views:
Transcription
1 JPUG PITR Proposal NTT
2 PostgreSQL WAL PITR PITR PITR 1. Xlog archival(xlog ) 1.1 XLogArchive API XLogArchive API XLoxArchive API pg_arch 2. RPIT PITR 2
3 PostgreSQL WAL WAL(Write Ahead Logging) PostgreSQL7.1 WAL WAL xlog WAL WAL WAL WAL 3
4 PITR Point In Time Recovery WAL xlog PITR 4
5 5 commit commit commit XLogArchiveNotify XLogArchiveXlogs XLogArchiveComplete XLogArchiveBusy WAL
6 PITR 6
7 1. xlog archival xlog xlog archival API archival API PostgreSQL API 7
8 1.1. XLogArchive API XLogArchive API PostgreSQL xlog PostgreSQL wal_archive_policy PostgreSQL XLogArchive wal_archive_policy PostgreSQL OS 8
9 1.1. XLogArchive API -2 XLogArchive API XLogArchive API PostgreSQL postgresql XLogArchive API XLogArchive API postmaster 1 9
10 1.1.1 XLogArchive API XLogArchive API XLogArchiveNotify(xlog) XLogArchiveXlogs() XLogArchiveComplete(xlog) XLogArchiveBusy(xlog) XLogArchiveFree 10
11 1.1.1 XLogArchive API -2 XLogArchiveNotify(xlog) PostgreSQL xlog PostgreSQL TRUE or FALSE TRUE FALSE xlog xlog 11
12 1.1.1 XLogArchive API -3 XLogArchiveLogs() xlog xlog xlog 12
13 1.1.1 XLogArchive API -4 XLogArchiveComplete(xlog) SUCCESS ALREADY_NOTTIFIED SERVER_FAILURE SUCCESS ALREADY_NOTTIFIED SERVER_FAILURE XLogArchiveComplete xlog xlog 2 13
14 1.1.1 XLogArchive API -5 XLogArchiveBusy(xlog) xlog ARCHIVE_OK BUSY SERVER_ERROR ARCHIVE_OK xlog OK BUSY archivercomplete xlog SERVER_ERROR xlog XLogArchiveBusy(xlog) xlog XLogArchiveBusy(xlog) postmaster 14
15 1.1.2 XLogArchive API XLogArchive API XLogArchive API pg_xlog pg_clog pg_rlog xlog /usr/local/pgsql/data -----base/ -----global/ -----pg_clog/ -----pg_rlog/ -----pg_xlog/ 15
16 1.1.2 XLogArchive API -2 XLogArchiveNotify(xlog) TRUE or FALSE TRUE FALSE <XLOG>.full pg_rlog TRUE FALSE <XLOG> PostgreSQL xlog 16
17 1.1.2 XLogArchive API -3 XLogArchiveComplete(xlog) SUCCESS ALREADY_NOTTIFIED SERVER_FAILURE SUCCESS ALREADY_NOTTIFIED SERVER_FAILURE xlog pg_rlog <XLOG>.done SUCCESS <XLOG>.done ALREADY_NOTTIFIED 17
18 1.1.2 XLogArchive API -4 XLogArchiveBusy(xlog) ARCHIVE_OK BUSY SERVER_ERROR ARCHIVE_OK xlog OK BUSY archivercomplete xlog SERVER_ERROR pg_rlog <XLOG>.done ARCHIVE_OK pg_rlog <XLOG>.busy BUSY pg_rlog <XLOG>.full???? SERVER_ERROR 18
19 1.1.2 XLogArchive API -5 XLogArchive src/backend/utils/misc/guc.c XLogArchive src/backend/access/transam/xlog.c XLogArchiveNotify(xlog) XLogArchiveBusy(xlog) src/interfaces/ libpgarch.c XLogArchiveXlogs() XlogArchiveComplete() src/tools/ pg_arch.c 19
20 1.1.3 xlog postgres xlog wait XLogArchiveXlogs() xlog pg_rlog <XLOG>.full XLogArchiveNotify(xlog) <XLOG>.full <XLOG>.full pg_rlog XLogArchiveComplete(xlog) xlog pg_rlog <XLOG>.full <XLOG>.busy xlog <XLOG>.done 20
21 postgresql <XLOG>.done ARCHIVE_OK <XLOG>.busy BUSY XLogArchiveBusy(xlog) ARCHIVE_OK XLogArchiveFree xlog xlog 21
22 1.2 pg_arch pg_arch ( xlog ) libpgarch.c pg_xlog foreground background foreground background postmaster pg_arch -D <data-file> -A <archive directory> Simon Riggs (Date: Tue, 9 Mar :38:19) pg_arch API xlog API 22
23 2. RPIT Recovery to Point-in-Time pg_xlog xlog xlog xlog 23
24 2.1 PostgreSQL 24
25 2.2 xlog postmaster postmaster xlog 25
26 2.3 26
27 3. notification XBSA,NDMP 27
28 4. PITR PITR XLogArchive API PostgreSQL XLogArchive API pg_arch 3 2 0!? PITR XLogArchive API pg_arch 4 4 xlog.c, xlog.h, guc.c RPIT 5 28
29 4. PITR -2 PITR 6 PostgreSQL7.5X PITR Simon HDD!? 29
1 2 3 1 34060120 1,00040 2,000 1 5 10 50 2014B 305,000140 285 5 6 9 1,838 50 922 78 5025 50 10 1 2
0120-563-506 / 9001800 9001700 123113 0120-860-777 163-8626 6-13-1 Tel.03-6742-3111 http://www.himawari-life.co.jp 1 2 3 1 34060120 1,00040 2,000 1 5 10 50 2014B 305,000140 285 5 6 9 1,838 50 922 78 5025
More information株主通信:第16期 中間報告書
9 1 20,000 15,000 10,000 5,000 2007/4 2008/4 2009/4 2010/4 2011/4 2012/4 2013/4 01 02 2 3 03 04 4 05 06 5 133,362 206,945 344,360 363,936 67,583 128,114 819 18,583 412,477 846,445 164,935 422,265 1,433,645
More informationPostgreSQLによる データベースサーバ構築技法
PostgreSQL PostgreSQL PostgreSQL (UCB) Unix/Linux/Windows LC2002 Copyright(C)2002 Tatsuo Ishii 1 PostgreSQL API C, C++, Java, Perl, Tcl/Tk, PHP, Ruby LC2002 Copyright(C)2002 Tatsuo Ishii 2 PostgreSQL (SQL)
More information1 Log のしくみ 平成十六年七月廿六日 NTT サイバースペース研究所坂田哲夫
1 Log のしくみ 平成十六年七月廿六日 NTT サイバースペース研究所坂田哲夫 あらまし ログの概要 ログとはどのようなモノか ログによるリカバリ WAL について 論理物理ロギング ログデータの構造 PostgreSQL7.4 でのログのしくみ 大きな枠組み : ロギングサブシステムの位置付け 内部構造 : 関数とデータ構造レベルでの説明 PITR について 追加機能の概要 RPIT について
More information16soukatsu_p1_40.ai
2 2016 DATA. 01 3 DATA. 02 4 DATA. 03 5 DATA. 04 6 DATA. 05 7 DATA. 06 8 DATA. 07 9 DATA. 08 DATA. 09 DATA. 10 DATA. 11 DATA. 12 DATA. 13 DATA. 14 10 11 12 13 COLUMN 1416 17 18 19 DATA. 15 20 DATA. 16
More information607_h1h4_0215.indd
3 2016 Mar. No.607 http://www.saitama-ctv-kyosai.net 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
More information10.02EWE51号本文
51 2010 Mar. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
More information1003shinseihin.pdf
1 1 1 2 2 3 4 4 P.14 2 P.5 3 P.620 6 7 8 9 10 11 13 14 18 20 00 P.21 1 1 2 3 4 5 2 6 P7 P14 P13 P11 P14 P13 P11 3 P13 7 8 9 10 Point! Point! 11 12 13 14 Point! Point! 15 16 17 18 19 Point! Point! 20 21
More informationp01.qxd
2 s 1 1 2 6 2 POINT 23 23 32 15 3 4 s 1 3 2 4 6 2 7003800 1600 1200 45 5 3 11 POINT 2 7003800 7 11 7003800 8 12 9 10 POINT 2003 5 s 45700 3800 5 6 s3 1 POINT POINT 45 2700 3800 7 s 5 8 s3 1 POINT POINT
More informationワタベウェディング株式会社
1 2 3 4 140,000 100,000 60,000 20,000 0 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 5 6 71 2 13 14 7 8 9 10 11 12 1 2 2 point 1 point 2 1 1 3 point 3 4 4 5 6 point 4 point 5 point 6 13 14 15 16 point 17
More informationuntitled
1 2 3 4 5 6 7 Point 60,000 50,000 40,000 30,000 20,000 10,000 0 29,979 41,972 31,726 45,468 35,837 37,251 24,000 20,000 16,000 12,000 8,000 4,000 0 16,795 22,071 20,378 14 13 12 11 10 0 12.19 12.43 12.40
More information-- 0 500 1000 1500 2000 2500 3000 () 0% 20% 40% 60%23 47.5% 16.0% 26.8% 27.6% 10,000 -- 350 322 300 286 250 200 150 100 50 0 20 21 22 23 24 25 26 27 28 29 -- ) 300 280 260 240 163,558 165,000 160,000
More information株主通信:第18期 中間
19 01 02 03 04 290,826 342,459 1,250,678 276,387 601,695 2,128,760 31,096 114,946 193,064 45,455 18,478 10,590 199,810 22,785 2,494 3,400,763 284,979 319,372 1,197,774 422,502 513,081 2,133,357 25,023
More information株主通信 第16 期 報告書
10 15 01 02 1 2 3 03 04 4 05 06 5 153,476 232,822 6,962 19,799 133,362 276,221 344,360 440,112 412,477 846,445 164,935 422,265 1,433,645 26,694 336,206 935,497 352,675 451,321 1,739,493 30,593 48,894 153,612
More informationヤフー株式会社 株主通信VOL.16
01 260,602264,402 122,795125,595 64,84366,493 107110 120,260123,060 0 500 300 400 200 100 700 600 800 39.8% 23.7% 36.6% 26.6% 21.1% 52.4% 545 700 0 50 200 150 100 250 300 350 312 276 151 171 02 03 04 POINT
More informationPostgreSQL 解析ドキュメント
postmaster Unix postmaster postmaster postmaster postmaster DB BootstrapMain() 7.4.2 postmaster [ 2 ] Unix [ 3 ] Unix ( ) (SIGKILL, SIGSTOP) abort exit abort core (core dump) exit core dump ( ) [ 4 ] [
More information離散数学 第 1回 論理 (1):命題論理
1 (1) okamotoy@uecacjp 2012 4 10 2012 4 11 10:57 () (1) 2012 4 10 1 / 53 () (1) 2012 4 10 2 / 53 () 1 (1) (4 10 ) () (4 17 ) 2 (1) (4 24 ) 3 (2) (5 1 ) 4 (2) (5 8 ) 5 (3) (5 15 ) 6 (1) (5 22 ) 7 (2) (5
More informationuntitled
186 17 100160250 1 10.1 55 2 18.5 6.9 100 38 17 3.2 17 8.4 45 3.9 53 1.6 22 7.3 100 2.3 31 3.4 47 OR OR 3 1.20.76 63.4 2.16 4 38,937101,118 17 17 17 5 1,765 1,424 854 794 108 839 628 173 389 339 57 6 18613
More informationuntitled
1. 3 14 2. 1 12 9 7.1 3. 5 10 17 8 5500 4. 6 11 5. 1 12 101977 1 21 45.31982.9.4 79.71996 / 1997 89.21983 41.01902 6. 7 5 10 2004 30 16.8 37.5 3.3 2004 10.0 7.5 37.0 2004 8. 2 7 9. 6 11 46 37 25 55 10.
More informationJPUG 仕組み分科会 補足資料 補足資料 :PostgreSQL の WAL と PITR 1. PostgreSQL の簡単な紹介 "PostgreSQL" はオープンソースのデータベースシステム 1.1. 歴史 PostgreSQL の起
補足資料 : の WAL と PITR 鈴木啓修 @InterDB.jp 1. の簡単な紹介 "" はオープンソースのデータベースシステム 1.1. 歴史 の起源は カリフォルニア大学バークレー校で作られた "Postgres" Postgres の開発は 1986 年から しかし 研究プロジェクトだったため 保守とユーザサポートの負担が大きくなったことを理由に バージョン 4.2 をもって開発が終了
More information=
2. 2.1 2.2 kuri@ice.uec.ac.jp ( 2007/10/30/16:46) 1 . 1. 1 + 2 = 5. 2. 180. 3. 3 3. 4.. 5.. 2 2.1 1.,,,,. 2., ( ) ( ).,,,, 3.,. 4.,,,. 3 1.,. 1. 1 + 2 = 5. (, ) 2. 180. (, ) 3. 3, 3. (, ) 4.. (, ) 5..
More informationスライド 1
45 分でわかる PostgreSQL の仕組み 2012/10/17 SRA OSS, Inc. Japan 山田努 tsutomu@sraoss.co.jp 2012/10/17 Copyright 2012 SRA OSS, Inc. Japan All rights reserved. 1 序 : 目次 各サーバプロセス クライアント / サーバ通信 データ格納 ストレージ上の記録方式 SQL
More information~~~~~~~~~~~~~~~~~~ wait Call CPU time 1, latch: library cache 7, latch: library cache lock 4, job scheduler co
072 DB Magazine 2007 September ~~~~~~~~~~~~~~~~~~ wait Call CPU time 1,055 34.7 latch: library cache 7,278 750 103 24.7 latch: library cache lock 4,194 465 111 15.3 job scheduler coordinator slave wait
More information橡CoreTechAS_HighAvailability.PDF
Oracle Application Server 10g Oracle Developer Suite 10g High Availability Page 1 1 Oracle Application Server 10g (9.0.4) 10g(9.0.4) Oracle Application Server 10g(9.0.4) New Enhanced Page 2 2 OracleAS
More information2
2013 Vol.18 No.2 3 24 25 8 22 2 23 26 9 15 20 2 3 4 5 6 7 8 point1 point 2 point3 point4 10 11 point1 point 2 point 3 point 4 12 13 14 15 16 17 18 19 20 http://www.taishukan.co.jp/kateika/ 21 22 23 24
More information... 1.... 1... 1... 1... 1... 1... 2... 3... 3... 3 100... 4... 8... 9... 9... 11... 13... 13... 13... 14... 14... 16... 18... 18... 18... 20... 20...
... 1.... 1... 1... 1... 1... 1... 2... 3... 3... 3 100... 4... 8... 9... 9... 11... 13... 13... 13... 14... 14... 16... 18... 18... 18... 20... 20... 20 1 ... 21... 21... 22... 22... 23. 23... 24... 24...
More informationh1
1 2 3 4 POINT! 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 POINT! 32 POINT! 33 34 35 給与 36 37 POINT! 38 POINT! 39 POINT! 40 41 42 43 44 45 46 POINT! 47 48 49 50 51 52 53
More informationCONTENTS 5 6 8 7 11 12 14 13 16 15 18 17 18 19 20 21 22 23 24 25 26 28 27 29 31 30 32 1 33 35 34 2 POINT POINT POINT 37 36 3 POINT POINT 39 38 4 POINT POINT 41 40 5 POINT POINT 43 42 6 POINT POINT 45
More information1 Point 2 Point 3 Point 5 490,000 10 20 25 35 1,059,000 2,235,500 2,890,500 4,449,500 777,000 1,554,000 3,108,000 3,885,000 3,885,000 4,132,000106.3 6
'16-WE07-091 201605 1 Point 2 Point 3 Point 5 490,000 10 20 25 35 1,059,000 2,235,500 2,890,500 4,449,500 777,000 1,554,000 3,108,000 3,885,000 3,885,000 4,132,000106.3 63.0 68.1 71.9 74.4 114.5 40 500
More information1,.,,,., RDBM, SQL. OSS,, SQL,,.
1,.,,,., RDBM, SQL. OSS,, SQL,,. 3 10 10 OSS RDBMS SQL 11 10.1 OSS RDBMS............................ 11 10.1.1 PostgreSQL................................. 11 10.1.2 MySQL...................................
More information4 1 2 34 56 1
2016 8 2 2 4 1 2 34 56 1 3 2 4 2 78 910 2 1 3 10,000 A 100 A 9,900 9,900 A 100 100 POINT! 4 2 2 2 5 2100 100 3 50 5050100 POINT! 6 3 2 7 ABC 2 10010,0001100 2 100 2 5,000 1 50 32 16,000 13,000 10,000 7,000
More informationP.01 C Global Value Corp. PAT.P 2008'
Value Point system *1 2009. 2. 25 2009. 2. 25 C Global Value Corp. PAT.P 2008' P.01 C Global Value Corp. PAT.P 2008' C Global Value Corp. PAT.P 2008' P.03 P.06 C Global Value Corp. PAT.P 2008' C Global
More information21 1 2 1 2
21 1 2 1 2 1 2 3 ( ) 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 210 0.0 0.0 22 23 25 27 28 29 30 31 32 33 34 35 36 74 pp.4362003.10 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 141224 14 48 10
More information改訂履歴 版改訂日変更内容 /4/25 新規作成 ライセンス 本作品は CC-BY ライセンスによって許諾されています ライセンスの内容を知りたい方は でご確認ください 文書の内容 表記に関
2013 年活動報告書 Appendix 3 バックアップ検証 (SR 編 ) PostgreSQL エンタープライズ コンソーシアム WG3( 設計運用 WG) 改訂履歴 版改訂日変更内容 1.0 2014/4/25 新規作成 ライセンス 本作品は CC-BY ライセンスによって許諾されています ライセンスの内容を知りたい方は http://creativecommons.org/licenses/by/2.1/jp/
More informationPHP4徹底攻略 改訂版
PHP Copyright 2002 The PHP Development Team. All rights reserved. PostgreSQL Data Base Management System formerly known as Postgres, then as Postgres95. Copyright 1994-2002 Regents of the University of
More informationTheRecord.indd
August 2015 The Record vol.669 Contents 6/23 7/13 16 6/26 THE RECORD 2015-08 2 focus 01 02 3 THE RECORD 2015 08 03 04 THE RECORD 2015 08 4 focus 5 THE RECORD 2015 08 THE RECORD 2015 08 6 focus 1 SHOP DATA
More information13 9 11 7 3 20
- 1 - 13 9 11 7 3 20 Point Point Point 1 2-1 - - 2 - - 3 - 1-4 - 2 3-5 - 1 2 3-6 - 1 2-7 - 3 4 5 6-8 - 1 2-9 - 1 2-10 - - 11 - - 12 - - 13 - 1 2-14 - 3 4 5 6 7-15 - 8-16 - - 17 - 1-18 - 2 1 2 3-19
More informationPHP Copyright 2000 The PHP Development Team. All rights reserved. PostgreSQL Data Base Management System formerly known as Postgres, then as Postgres95. Copyright 1994-2000 Regents of the University of
More information久留米市地域防災計画
(2) 1 (3) (4) 2 3 4 3 5 6 7 NHK 8 9 10 11 12 13 14 15 16 17 18 19 20 391 391 68 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
More information第1節 災害体制の確立
(2) 1 (3) (4) 2 3 4 5 3 6 7 8 9 10 NHK 11 12 13 14 15 16 17 18 19 20 21 22 23 391 391 24 68 25 26 FAX 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
More information意外と簡単!? Oracle Database 11g -バックアップ・リカバリ編-
Oracle Direct Seminar !?Oracle Database 11g -- Agenda Oracle Direct Concierge SQL Server MySQL PostgreSQL Access Oracle Database Oracle Developer/2000 Web Oracle Database Oracle Database
More information0730表紙修正★福利厚生センター_p36.indd
27 3 0120-775-229 TEL0120-134-666 FAX03-3294-6817 Renewal Point 1 Point 2 Point 3 Point 4 Point 5 Point 6 2 25 A C A 1 81,600 227 351 479 440 2 42,000 3 19,400 B C 565 26 27 28 29 30 1 120,000 118,300
More informationn n n ( ) n Oracle 16 PostgreSQL 3 MySQL
SaaS CAM MACS PostgreSQL ~ ~ 7 PostgreSQL in 2014/02/07 n n n ( ) n Oracle 16 PostgreSQL 3 MySQL n SaaS CAM MACS n AWS n 1993 6 1 1999 4 1 C/S CAM MACS 2007 4 1 SaaS CAM MACS 2007 11 1 SaaS CAM MACS CAM
More information(822000) (842000)
912100 810010 810501 810901 (822000) 822100 832100 (842000) 842100 913000 810020 810503 810903 822700 832200 842200 913100 810030 810504 810912 822200 832700 842700 913200 810040 810502 810902 822300 832300
More informationmanual.dvi
oscommerce 2002 9 6 oscommerce oscommerce 2.2 1 1 1.1................................................. 1 1.1.1......................................... 1 1.2.................................................
More information2009/02/ /03/ /03/ /06/16 21
2009 6 2009/02/25 3 3 2009/03/03 3 10 2009/03/10 6 16 2009/06/16 21 ... 1 1... 3 1-1... 3 1-2... 3 1-3... 3 1-4... 4 1-5... 6 2... 7 2-1 ( )... 7 3... 13 4... 16 4-1... 16 4-2... 17 4-3... 18 5... 19 5-1...
More information