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 brin, 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_mh38j7drfuxfak1p6dsnaeuakx...@mail.gmail.com Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/b2ae1d6c4da12be54260d39f866bcd9f31768037 Modified Files -------------- src/backend/storage/buffer/bufmgr.c | 7 ++++++- src/include/storage/buf_internals.h | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers