pgsql: Allow definition of lock mode for custom reloptions - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Allow definition of lock mode for custom reloptions
Date
Msg-id E1iCw0M-0000YL-DD@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Allow definition of lock mode for custom reloptions

Relation options can define a lock mode other than AccessExclusiveMode
since 47167b7, but modules defining custom relation options did not
really have a way to enforce that.  Correct that by extending the
current API set so as modules can define a custom lock mode.

Author: Michael Paquier
Reviewed-by: Kuntal Ghosh
Discussion: https://postgr.es/m/20190920013831.GD1844@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/69f94108079d70093b59096a3ae0ad82c842b4c0

Modified Files
--------------
contrib/bloom/blutils.c                |  6 ++++--
src/backend/access/common/reloptions.c | 28 ++++++++++++----------------
src/include/access/reloptions.h        | 11 +++++++----
3 files changed, 23 insertions(+), 22 deletions(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Fix failure with lock mode used for custom relation options
Next
From: Michael Paquier
Date:
Subject: pgsql: Add dummy_index_am to src/test/modules/