Allow definition of lock mode for custom reloptions

Michael Paquier <michael@paquier.xyz>

Commit: 69f94108079d70093b59096a3ae0ad82c842b4c0
Author: Michael Paquier <michael@paquier.xyz>
Date: 2019-09-25T01:13:52Z
Releases: 13.0
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

Files

PathChange+/−
contrib/bloom/blutils.c modified +4 −2
src/backend/access/common/reloptions.c modified +12 −16
src/include/access/reloptions.h modified +7 −4

Discussion