postgresql/src/backend/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
..
buffer Fix failure to mark init buffers as BM_PERMANENT. 2017-03-14 12:06:36 -04:00
file Fix sloppy handling of corner-case errors in fd.c. 2017-02-21 17:51:28 -05:00
freespace Fix WAL-logging of FSM and VM truncation. 2016-10-19 15:00:10 +03:00
ipc Fix typos in comments. 2017-02-06 11:34:24 +02:00
large_object Add defenses against running with a wrong selection of LOBLKSIZE. 2014-06-05 11:31:06 -04:00
lmgr Fix typos in comments. 2017-02-06 11:34:24 +02:00
page Fix off-by-one error in Assertion. 2015-05-19 19:25:41 +03:00
smgr Fix mdtruncate() to close fd.c handle of deleted segments. 2016-09-08 16:52:13 -07:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00