postgresql/src/include/storage
Robert Haas bbd5e600ff Fix failure to mark init buffers as BM_PERMANENT.
This could result in corruption of the init fork of an unlogged index
if the ambuildempty routine for that index used shared buffers to
create the init fork, which was true for gin, gist, and hash indexes.

Patch by me, based on an earlier patch by Michael Paquier, who also
reviewed this one.  This also incorporates an idea from Artur
Zakirov.

Discussion: http://postgr.es/m/CACYUyc8yccE4xfxhqxfh_Mh38j7dRFuxfaK1p6dSNAEUakxUyQ@mail.gmail.com
2017-03-14 12:06:36 -04:00
..
backendid.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
barrier.h Use "mb" not the nonexistent "rmb" for pg_read_barrier() on Alpha. 2015-08-29 16:34:30 -04:00
block.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
buf.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
buf_internals.h Fix failure to mark init buffers as BM_PERMANENT. 2017-03-14 12:06:36 -04:00
buffile.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
bufmgr.h Fix bug leading to restoring unlogged relations from empty files. 2015-12-10 16:29:26 +01:00
bufpage.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
checksum.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
checksum_impl.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
copydir.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
dsm.h "Pin", rather than "keep", dynamic shared memory mappings and segments. 2014-10-30 11:44:22 -04:00
dsm_impl.h "Pin", rather than "keep", dynamic shared memory mappings and segments. 2014-10-30 11:44:22 -04:00
fd.h Introduce durable_rename() and durable_link_or_rename(). 2016-03-09 18:53:54 -08:00
freespace.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
fsm_internals.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
indexfsm.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
ipc.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
item.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
itemid.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
itemptr.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
large_object.h Add defenses against running with a wrong selection of LOBLKSIZE. 2014-06-05 11:31:06 -04:00
latch.h Don't CHECK_FOR_INTERRUPTS between WaitLatch and ResetLatch. 2016-08-01 15:13:53 -04:00
lmgr.h Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
lock.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
lwlock.h Fix calculation of PREDICATELOCK_MANAGER_LWLOCK_OFFSET. 2014-06-19 08:52:16 -05:00
off.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
pg_sema.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
pg_shmem.h On Windows, ensure shared memory handle gets closed if not being used. 2015-10-13 11:21:33 -04:00
pmsignal.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
pos.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
predicate.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
predicate_internals.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
proc.h Don't skip SQL backends in logical decoding for visibility computation. 2014-12-02 23:52:44 +01:00
procarray.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
procsignal.h Export set_latch_on_sigusr1 symbol for Windows. 2014-01-17 12:48:23 -05:00
reinit.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
relfilenode.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
s_lock.h Fix typos in comments. 2017-02-06 11:34:24 +02:00
shm_mq.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
shm_toc.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
shmem.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
sinval.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
sinvaladt.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
smgr.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
spin.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
standby.h Logging running transactions every 15 seconds. 2014-01-15 12:41:20 -05:00