]> granicus.if.org Git - postgresql/commit
Fix incorrect archive truncation point calculation in the %r recovery_command
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 9 May 2008 14:28:08 +0000 (14:28 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 9 May 2008 14:28:08 +0000 (14:28 +0000)
commit48bf6642c3d9cd204a0b9ab2c418bd26a7d70539
tree54db584e6d3232b8bf9478d91c0c9a73771afd8a
parent65a1e96c1ded26653da75a486b965561b155d61c
Fix incorrect archive truncation point calculation in the %r recovery_command
parameter. This fixes bug 4137 reported by Wojciech Strzalka, where a WAL
file is deleted too early when starting the recovery of a warm standby server.

Also add a sanity check in pg_standby so that it will refuse to delete anything
earlier than the file being restored, and improve the debug message in case
nothing is deleted.

Simon Riggs. Backpatch to 8.3, which is where %r was introduced.
contrib/pg_standby/pg_standby.c
src/backend/access/transam/xlog.c