Fix lockmode initialization for custom relation options
authorMichael Paquier <[email protected]>
Fri, 27 Sep 2019 00:31:20 +0000 (09:31 +0900)
committerMichael Paquier <[email protected]>
Fri, 27 Sep 2019 00:31:20 +0000 (09:31 +0900)
commitfbfa5664882c9b61428266e6fb0d48b0147c421a
tree8c8787c2230f0857ad5842977d42518d8cfb1ec9
parent8190164e82ae03bde80864ab0941794a90e70483
Fix lockmode initialization for custom relation options

The code was enforcing AccessExclusiveLock for all custom relation
options, which is incorrect as the APIs allow a custom lock level to be
set.

While on it, fix a couple of inconsistencies in the tests and the README
of dummy_index_am.

Oversights in commit 773df88.

Discussion: https://postgr.es/m/20190925234152[email protected]
src/backend/access/common/reloptions.c
src/test/modules/dummy_index_am/README
src/test/modules/dummy_index_am/expected/reloptions.out
src/test/modules/dummy_index_am/sql/reloptions.sql