pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Make WAL-related utilities handle .partial WAL files properly.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Make WAL-related utilities handle .partial WAL files properly.
@ 2015-07-03 02:55  Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Fujii Masao @ 2015-07-03 02:55 UTC (permalink / raw)
  To: pgsql-committers

Make WAL-related utilities handle .partial WAL files properly.

Commit de76884 changed an archive recovery so that the last WAL
segment with old timeline was renamed with suffix .partial. It should
have updated WAL-related utilities so that they can handle such
.paritial WAL files, but we forgot that.

This patch changes pg_archivecleanup so that it can clean up even
archived WAL files with .partial suffix. Also it allows us to specify
.partial WAL file name as the command-line argument "oldestkeptwalfile".

This patch also changes pg_resetxlog so that it can remove .partial
WAL files in pg_xlog directory.

pg_xlogdump cannot handle .partial WAL files. Per discussion,
we decided only to document that limitation instead of adding the fix.
Because a user can easily work around the limitation (i.e., just remove
.partial suffix from the file name) and the fix seems complicated for
very narrow use case.

Back-patch to 9.5 where the problem existed.

Review by Michael Paquier.
Discussion: http://www.postgresql.org/message-id/CAHGQGwGxMKnVHGgTfiig2Bt_2djec0in3-DLJmtg7+nEiidFdQ@mail.gmail....

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/eeaf1b6afacba0fc0a0e1878c2ed23f4fceef039

Modified Files
--------------
doc/src/sgml/ref/pg_xlogdump.sgml             |    6 +++++
doc/src/sgml/ref/pgarchivecleanup.sgml        |    6 +++--
src/bin/pg_archivecleanup/pg_archivecleanup.c |   31 +++++++++++++++++++++----
src/bin/pg_resetxlog/pg_resetxlog.c           |   10 +++++---
4 files changed, 43 insertions(+), 10 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Make WAL-related utilities handle .partial WAL files properly.
@ 2015-07-03 02:55  Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Fujii Masao @ 2015-07-03 02:55 UTC (permalink / raw)
  To: pgsql-committers

Make WAL-related utilities handle .partial WAL files properly.

Commit de76884 changed an archive recovery so that the last WAL
segment with old timeline was renamed with suffix .partial. It should
have updated WAL-related utilities so that they can handle such
.paritial WAL files, but we forgot that.

This patch changes pg_archivecleanup so that it can clean up even
archived WAL files with .partial suffix. Also it allows us to specify
.partial WAL file name as the command-line argument "oldestkeptwalfile".

This patch also changes pg_resetxlog so that it can remove .partial
WAL files in pg_xlog directory.

pg_xlogdump cannot handle .partial WAL files. Per discussion,
we decided only to document that limitation instead of adding the fix.
Because a user can easily work around the limitation (i.e., just remove
.partial suffix from the file name) and the fix seems complicated for
very narrow use case.

Back-patch to 9.5 where the problem existed.

Review by Michael Paquier.
Discussion: http://www.postgresql.org/message-id/CAHGQGwGxMKnVHGgTfiig2Bt_2djec0in3-DLJmtg7+nEiidFdQ@mail.gmail....

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8650d161ae4369ec64a6fc7b7cbd0e6e55c3a7aa

Modified Files
--------------
doc/src/sgml/ref/pg_xlogdump.sgml             |    6 +++++
doc/src/sgml/ref/pgarchivecleanup.sgml        |    6 +++--
src/bin/pg_archivecleanup/pg_archivecleanup.c |   31 +++++++++++++++++++++----
src/bin/pg_resetxlog/pg_resetxlog.c           |   10 +++++---
4 files changed, 43 insertions(+), 10 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2015-07-03 02:55 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-07-03 02:55 pgsql: Make WAL-related utilities handle .partial WAL files properly. Fujii Masao <fujii@postgresql.org>
2015-07-03 02:55 pgsql: Make WAL-related utilities handle .partial WAL files properly. Fujii Masao <fujii@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox