postgresql/src/backend/storage
Simon Riggs 47c4333189 Avoid tricky race condition recording XLOG_HINT
We copy the buffer before inserting an XLOG_HINT to avoid WAL CRC errors
caused by concurrent hint writes to buffer while share locked. To make this work
we refactor RestoreBackupBlock() to allow an XLOG_HINT to avoid the normal
path for backup blocks, which assumes the underlying buffer is exclusive locked.
Resulting code completely changes layout of XLOG_HINT WAL records, but
this isn't even beta code, so this is a low impact change.
In passing, avoid taking WALInsertLock for full page writes on checksummed
hints, remove related cruft from XLogInsert() and improve xlog_desc record for
XLOG_HINT.

Andres Freund

Bug report by Fujii Masao, testing by Jeff Janes and Jaime Casanova,
review by Jeff Davis and Simon Riggs. Applied with changes from review
and some comment editing.
2013-04-08 08:52:39 +01:00
..
buffer Avoid tricky race condition recording XLOG_HINT 2013-04-08 08:52:39 +01:00
file Add support for piping COPY to/from an external program. 2013-02-27 18:22:31 +02:00
freespace Allow I/O reliability checks using 16-bit checksums 2013-03-22 13:54:07 +00:00
ipc Add lock_timeout configuration parameter. 2013-03-16 23:22:57 -04:00
large_object Code beautification for object-access hook machinery. 2013-03-06 20:53:25 -05:00
lmgr Calculate # of semaphores correctly with --disable-spinlocks. 2013-04-04 16:40:37 +03:00
page README comments on checksums on page holes. 2013-04-08 08:42:52 +01:00
smgr Improve code documentation about "magnetic disk" storage manager. 2013-03-30 14:23:45 -04:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00