postgres/contrib/bloom
Michael Paquier d481680037 Fix failure with lock mode used for custom relation options
In-core relation options can use a custom lock mode since 47167b7, that
has lowered the lock available for some autovacuum parameters.  However
it forgot to consider custom relation options.  This causes failures
with ALTER TABLE SET when changing a custom relation option, as its lock
is not defined.  The existing APIs to define a custom reloption does not
allow to define a custom lock mode, so enforce its initialization to
AccessExclusiveMode which should be safe enough in all cases.  An
upcoming patch will extend the existing APIs to allow a custom lock mode
to be defined.

The problem can be reproduced with bloom indexes, so add a test there.

Reported-by: Nikolay Sharplov
Analyzed-by: Thomas Munro, Michael Paquier
Author: Michael Paquier
Reviewed-by: Kuntal Ghosh
Discussion: https://postgr.es/m/20190920013831.GD1844@paquier.xyz
Backpatch-through: 9.6
2019-09-25 10:08:36 +09:00
..
expected Fix failure with lock mode used for custom relation options 2019-09-25 10:08:36 +09:00
sql Fix failure with lock mode used for custom relation options 2019-09-25 10:08:36 +09:00
t Tighten test in contrib/bloom/t/001_wal.pl. 2017-11-10 12:30:06 -05:00
.gitignore
blcost.c Add optimizer and executor support for parallel index scans. 2017-02-15 13:53:24 -05:00
blinsert.c Avoid using potentially-under-aligned page buffers. 2018-09-01 15:27:13 -04:00
bloom--1.0.sql Minor fixes in contrib installation scripts. 2016-06-14 10:47:06 -04:00
bloom.control
bloom.h Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
blscan.c Fix misc typos, mostly in comments. 2018-07-18 16:18:27 +03:00
blutils.c Initial pgindent run with pg_bsd_indent version 2.0. 2017-06-21 14:39:04 -04:00
blvacuum.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
blvalidate.c Move some things from builtins.h to new header files 2017-01-20 20:29:53 -05:00
Makefile