diff options
| author | Fujii Masao <fujii@postgresql.org> | 2015-07-03 11:53:58 +0900 |
|---|---|---|
| committer | Fujii Masao <fujii@postgresql.org> | 2015-07-03 11:54:44 +0900 |
| commit | eeaf1b6afacba0fc0a0e1878c2ed23f4fceef039 (patch) | |
| tree | 4dfdff2fac0dc76c8a8df2b80addb1e0d22656a4 /doc/src/sgml/ref/pg_xlogdump.sgml | |
| parent | 69e9f9639d5c569a71c82f99550e7bf2912664f1 (diff) | |
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.com
Diffstat (limited to 'doc/src/sgml/ref/pg_xlogdump.sgml')
| -rw-r--r-- | doc/src/sgml/ref/pg_xlogdump.sgml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/pg_xlogdump.sgml b/doc/src/sgml/ref/pg_xlogdump.sgml index d9f4a6a499c..1d78cf1a758 100644 --- a/doc/src/sgml/ref/pg_xlogdump.sgml +++ b/doc/src/sgml/ref/pg_xlogdump.sgml @@ -215,6 +215,12 @@ PostgreSQL documentation Only the specified timeline is displayed (or the default, if none is specified). Records in other timelines are ignored. </para> + + <para> + <application>pg_xlogdump</> cannot read WAL files with suffix + <literal>.partial</>. If those files need to be read, <literal>.partial</> + suffix needs to be removed from the filename. + </para> </refsect1> <refsect1> |
