diff options
author | Fujii Masao <fujii@postgresql.org> | 2016-08-29 14:34:58 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2016-08-29 14:35:40 +0900 |
commit | 2802b02a540c0f5bc2d11e801dc527d4240ed404 (patch) | |
tree | 038e7deac5d6793d35cdad1964d27eafdaeada8b /src/backend/access/gist/gistbuildbuffers.c | |
parent | 9595bffc59831cfca1339b4eca35eac39e188209 (diff) | |
download | postgresql-2802b02a540c0f5bc2d11e801dc527d4240ed404.tar.gz postgresql-2802b02a540c0f5bc2d11e801dc527d4240ed404.zip |
Fix pg_xlogdump so that it handles cross-page XLP_FIRST_IS_CONTRECORD record.
Previously pg_xlogdump failed to dump the contents of the WAL file
if the file starts with the continuation WAL record which spans
more than one pages. Since pg_xlogdump assumed that the continuation
record always fits on a page, it could not find the valid WAL record to
start reading from in that case.
This patch changes pg_xlogdump so that it can handle a continuation
WAL record which crosses a page boundary and find the valid record
to start reading from.
Back-patch to 9.3 where pg_xlogdump was introduced.
Author: Pavan Deolasee
Reviewed-By: Michael Paquier and Craig Ringer
Discussion: CABOikdPsPByMiG6J01DKq6om2+BNkxHTPkOyqHM2a4oYwGKsqQ@mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gistbuildbuffers.c')
0 files changed, 0 insertions, 0 deletions