postgresql/contrib/bloom
Robert Haas fa0f466d53 Log the creation of an init fork unconditionally.
Previously, it was thought that this only needed to be done for the
benefit of possible standbys, so wal_level = minimal skipped it.
But that's not safe, because during crash recovery we might replay
XLOG_DBASE_CREATE or XLOG_TBLSPC_CREATE record which recursively
removes the directory that contains the new init fork.  So log it
always.

The user-visible effect of this bug is that if you create a database
or tablespace, then create an unlogged table, then crash without
checkpointing, then restart, accessing the table will fail, because
the it won't have been properly reset.  This commit fixes that.

Michael Paquier, per a report from Konstantin Knizhnik.  Wording of
the comments per a suggestion from me.
2016-12-08 14:12:08 -05:00
..
expected Fix contrib/bloom to work for unlogged indexes. 2016-05-24 21:04:35 -04:00
sql Fix contrib/bloom to work for unlogged indexes. 2016-05-24 21:04:35 -04:00
t Finish pgindent run for 9.6: Perl files. 2016-06-12 04:19:56 -04:00
.gitignore Bloom index contrib module 2016-04-01 16:42:24 +03:00
Makefile Bloom index contrib module 2016-04-01 16:42:24 +03:00
blcost.c Bloom index contrib module 2016-04-01 16:42:24 +03:00
blinsert.c Log the creation of an init fork unconditionally. 2016-12-08 14:12:08 -05:00
bloom--1.0.sql Minor fixes in contrib installation scripts. 2016-06-14 10:47:06 -04:00
bloom.control Bloom index contrib module 2016-04-01 16:42:24 +03:00
bloom.h Remove unnecessary prototypes 2016-09-30 14:04:16 -04:00
blscan.c Fix assorted bugs in contrib/bloom. 2016-08-13 22:24:48 -04:00
blutils.c Fix use of offsetof() 2016-09-30 14:00:44 -04:00
blvacuum.c Fix assorted bugs in contrib/bloom. 2016-08-13 22:24:48 -04:00
blvalidate.c Bloom index contrib module 2016-04-01 16:42:24 +03:00