are WAL file segment boundaries a point of consistency? - Mailing list pgsql-general

From John Lumby
Subject are WAL file segment boundaries a point of consistency?
Date
Msg-id BAY175-W26F6000EB93527AAC90851A33C0@phx.gbl
Whole thread Raw
Responses Re: are WAL file segment boundaries a point of consistency?  (Amador Alvarez <apradopg@gmail.com>)
Re: are WAL file segment boundaries a point of consistency?  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-general
We use logshipping replication,    and have recently noticed a nasty bug
 where, in certain very rare cases, the primary archive_command program
will fail to send the WAL file to the standby but report good return code 0 to postgresql.
In such cases,  if the standby then  triggers its termination of recovery mode,
it will come up in normal accessible mode but missing the log records from that last WAL file.

This is a bug in our code which we will fix,  but I am wondering if it means there is a possibility
of worse than missing some updates.      I.e. could it result in this was-standby cluster now having
a corrupt database  (e.g. an index entry with no matching heap slot or something like that  -  or worse)?

I think the question is whether the end of a WAL file is a point of consistency?
like the timestamp you can specify in the recovery.conf for a point-in-time recovery?
Or does postgresql xlogger just chop each WAL segment at the physical page boundary?

Cheers,     John Lumby

pgsql-general by date:

Previous
From: Miles Pomeroy
Date:
Subject: Re: SQL Path in psql
Next
From: janek12@web.de
Date:
Subject: Re: Levenshtein Distance with more than 255 characters