Write an end-of-backup WAL record at pg_stop_backup(), and wait for it at
recovery instead of reading the backup history file. This is more robust,
as it stops you from prematurely starting up an inconsisten cluster if the
backup history file is lost for some reason, or if the base backup was
never finished with pg_stop_backup().
This also paves the way for a simpler streaming replication patch, which
doesn't need to care about backup history files anymore.
The backup history file is still created and archived as before, but it's
not used by the system anymore. It's just for informational purposes now.
Bump PG_CONTROL_VERSION as the location of the backup startpoint is now
written to a new field in pg_control, and catversion because initdb is
Original patch by Fujii Masao per Simon's idea, with further fixes by me.
xlog.c (r1.356 -> r1.357)
pg_controldata.c (r1.45 -> r1.46)
pg_resetxlog.c (r1.76 -> r1.77)
catversion.h (r1.565 -> r1.566)
pg_control.h (r1.47 -> r1.48)
pgsql-committers by date
|Next:||From: Greg Stark||Date: 2010-01-04 13:29:52|
|Subject: Re: pgsql: When estimating the selectivity of an inequality "column >|
|Previous:||From: User Mhasegawa||Date: 2010-01-04 07:51:53|
|Subject: pgbulkload - pgbulkload: - Support encoding conversion (ENCODING = |