postgresql/src
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
..
backend Simplify the way changes to full_page_writes are logged. 2012-03-06 09:48:30 +02:00
bin Provide environment overrides for psql file locations. 2012-03-03 16:39:26 -05:00
include Redesign PlanForeignScan API to allow multiple paths for a foreign table. 2012-03-05 16:15:59 -05:00
interfaces ecpg: Clean up some const usage 2012-03-02 20:51:29 +02:00
makefiles
pl Fix I/O-conversion-related memory leaks in plpgsql. 2012-02-11 18:06:24 -05:00
port Move CRC tables to libpgport, and provide them in a separate include file. 2012-02-28 19:53:39 -05:00
template
test Add isolation test to check-world and installcheck-world 2012-03-05 20:19:20 +02:00
timezone
tools Fix MSVC builds for previous patch's addition of a src/port file. 2012-02-29 00:24:01 -05:00
tutorial
.gitignore
bcc32.mak
DEVELOPERS
Makefile
Makefile.global.in ecpg: Improve test building 2012-02-02 20:33:29 +02:00
Makefile.shlib
nls-global.mk
win32.mak