postgresql/src/include/access
Heikki Linnakangas 7e48b77b1c Fix some serious bugs in archive recovery, now that bgwriter is active
during it:

When bgwriter is active, the startup process can't perform mdsync() correctly
because it won't see the fsync requests accumulated in bgwriter's private
pendingOpsTable. Therefore make bgwriter responsible for the end-of-recovery
checkpoint as well, when it's active.

When bgwriter is active (= archive recovery), the startup process must not
accumulate fsync requests to its own pendingOpsTable, since bgwriter won't
see them there when it performs restartpoints. Make startup process drop its
pendingOpsTable when bgwriter is launched to avoid that.

Update minimum recovery point one last time when leaving archive recovery.
It won't be updated by the end-of-recovery checkpoint because XLogFlush()
sees us as out of recovery already.

This fixes bug #4879 reported by Fujii Masao.
2009-06-25 21:36:00 +00:00
..
attnum.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
clog.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
genam.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
gin.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
gist_private.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
gist.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
gistscan.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
hash.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
heapam.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
hio.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
htup.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
itup.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
multixact.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nbtree.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
printtup.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
reloptions.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
relscan.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
rewriteheap.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
rmgr.h Rethink the way FSM truncation works. Instead of WAL-logging FSM 2008-11-19 10:34:52 +00:00
sdir.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
skey.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
slru.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
subtrans.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
sysattr.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
transam.h 'PGDLLIMPORT' ShmemVariableCache, needed for pg_migrator.so function 2009-05-08 03:21:35 +00:00
tupdesc.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
tupmacs.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
tuptoaster.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
twophase_rmgr.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
twophase.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
valid.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
visibilitymap.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
xact.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
xlog_internal.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
xlog.h Fix some serious bugs in archive recovery, now that bgwriter is active 2009-06-25 21:36:00 +00:00
xlogdefs.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
xlogutils.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00