postgresql/src/backend/access
Heikki Linnakangas 3b682df326 Simplify the way changes to full_page_writes are logged.
It's harmless to do full page writes even when not strictly necessary, so
when turning full_page_writes on, we can set the global flag first, and then
call XLogInsert. Likewise, when turning it off, we can write the WAL record
first, and then clear the flag. This way XLogInsert doesn't need any special
handling of the XLOG_FPW_CHANGE record type. XLogInsert is complicated
enough already, so anything we can keep away from there is a good thing.

Actually I don't think the atomicity of the shared memory flag matters,
anyway, because we only write the XLOG_FPW_CHANGE at the end of recovery,
when there are no concurrent WAL insertions going on. But might as well make
it safe, in case we allow changing full_page_writes on the fly in the
future.
2012-03-06 09:48:30 +02:00
..
common Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
gin Fix some more bugs in GIN's WAL replay logic. 2012-02-26 15:12:17 -05:00
gist When a GiST page is split during index build, it might not have a buffer. 2012-03-02 13:16:09 +02:00
hash Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
heap Fix heap_multi_insert to set t_self field in the caller's tuples. 2012-02-13 10:20:50 +02:00
index Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
nbtree Don't clear btpo_cycleid during _bt_vacuum_one_page. 2012-02-21 15:03:36 -05:00
spgist Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
transam Simplify the way changes to full_page_writes are logged. 2012-03-06 09:48:30 +02:00
Makefile Add SP-GiST (space-partitioned GiST) index access method. 2011-12-17 16:42:30 -05:00