pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix lockmode initialization for custom relation options
Date: Fri, 27 Sep 2019 00:32:12 +0000
Message-ID: <E1iDeBA-0006dv-Oz@gemulon.postgresql.org> (raw)

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.GA2115@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fbfa5664882c9b61428266e6fb0d48b0147c421a

Modified Files
--------------
src/backend/access/common/reloptions.c                  | 7 -------
src/test/modules/dummy_index_am/README                  | 1 +
src/test/modules/dummy_index_am/expected/reloptions.out | 4 +++-
src/test/modules/dummy_index_am/sql/reloptions.sql      | 1 +
4 files changed, 5 insertions(+), 8 deletions(-)



Message-ID: <E1iDeBA-0006dv-Oz@gemulon.postgresql.org>
Permalink:  ../E1iDeBA-0006dv-Oz@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iDeBA-0006dv-Oz@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Fix lockmode initialization for custom relation options
  In-Reply-To: <E1iDeBA-0006dv-Oz@gemulon.postgresql.org>
  References: <E1iDeBA-0006dv-Oz@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox