Allow definition of lock mode for custom reloptions
authorMichael Paquier <michael@paquier.xyz>
Wed, 25 Sep 2019 01:13:52 +0000 (10:13 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 25 Sep 2019 01:13:52 +0000 (10:13 +0900)
commit69f94108079d70093b59096a3ae0ad82c842b4c0
treeb8caed9bae606203a6a5f069c2d5f6a3dc82c306
parent736b84eede6cfdadf1114cf5a0e950d7f4986d82
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
contrib/bloom/blutils.c
src/backend/access/common/reloptions.c
src/include/access/reloptions.h