pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Bruce Momjian <bruce@momjian.us>
To: andrew.dunstan@2ndquadrant.com, Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgresql.org
Subject: ALTER enums (was Re: [COMMITTERS] pgsql: doc:  first draft of Postgres 10 release notes)
Date: Wed, 27 Sep 2017 12:05:59 +0200
Message-ID: <20170927100559.dmss5mnrlent4dxe@alvherre.pgsql> (raw)
In-Reply-To: <E1d2pFa-0006t0-VI@gemulon.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Bruce Momjian wrote:
> doc:  first draft of Postgres 10 release notes

I noticed that this item

+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+2016-09-05 [15bc038f9] Relax transactional restrictions on ALTER TYPE ... ADD V
+-->
+<para>
+Reduce locking required for adding values to enum types (Andrew Dunstan,
+Tom Lane)
+</para>
+
+<para>
+Previously it was impossible to run <command>ALTER TYPE ... ADD
VALUE</> in a
+transaction block unless the enum type was created in the same block. 
+Now, only references to uncommitted enum values from other transactions
+is prohibited.
+</para>

does not really explain this change very clearly.  (The release note item
was slightly changed later, but not in the substance.)  It says it's
about "locking", but it is certainly not about what we normally call
"locking" in Postgres.

So, firstly I suggest it doesn't belong in the "Locking" section, but
rather it should be under "Utility Commands" instead.  Second, I think
it should say "Reduce transactional requirements" rather than "reduce
locking required".

I think there are further changes needed because of commits 175774d2932d
and 01c5de88ff2, but that's not what I'm on about here, though
discussion on that is welcome.

Contrary opinions?

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (3+ messages)  latest in thread

Message-ID: <20170927100559.dmss5mnrlent4dxe@alvherre.pgsql>
Permalink:  ../20170927100559.dmss5mnrlent4dxe@alvherre.pgsql/
Also on:    postgresql.org/message-id/20170927100559.dmss5mnrlent4dxe@alvherre.pgsql

 · 

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: alvherre@alvh.no-ip.org, bruce@momjian.us, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org
  Subject: Re: ALTER enums (was Re: [COMMITTERS] pgsql: doc:  first draft of Postgres 10 release notes)
  In-Reply-To: <20170927100559.dmss5mnrlent4dxe@alvherre.pgsql>
  References: <E1d2pFa-0006t0-VI@gemulon.postgresql.org> <20170927100559.dmss5mnrlent4dxe@alvherre.pgsql>

* 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