pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedALTER enums (was Re: [COMMITTERS] pgsql: doc: first draft of Postgres 10 release notes)
3+ messages / 2 participants
[nested] [flat]
* ALTER enums (was Re: [COMMITTERS] pgsql: doc: first draft of Postgres 10 release notes)
@ 2017-09-27 10:05 Alvaro Herrera <alvherre@alvh.no-ip.org>
2017-09-27 12:50 ` Re: ALTER enums (was Re: [COMMITTERS] pgsql: doc: first draft of Postgres 10 release notes) Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
0 siblings, 1 reply; 3+ messages in thread
From: Alvaro Herrera @ 2017-09-27 10:05 UTC (permalink / raw)
To: Bruce Momjian <bruce@momjian.us>; andrew.dunstan@2ndquadrant.com, Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-hackers@postgresql.org
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: ALTER enums (was Re: [COMMITTERS] pgsql: doc: first draft of Postgres 10 release notes)
2017-09-27 10:05 ALTER enums (was Re: [COMMITTERS] pgsql: doc: first draft of Postgres 10 release notes) Alvaro Herrera <alvherre@alvh.no-ip.org>
@ 2017-09-27 12:50 ` Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
2017-09-27 13:11 ` Re: ALTER enums (was Re: [COMMITTERS] pgsql: doc: first draft of Postgres 10 release notes) Alvaro Herrera <alvherre@alvh.no-ip.org>
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Dunstan @ 2017-09-27 12:50 UTC (permalink / raw)
To: Alvaro Herrera <alvherre@alvh.no-ip.org>; Bruce Momjian <bruce@momjian.us>; Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-hackers@postgresql.org
On 09/27/2017 06:05 AM, Alvaro Herrera wrote:
> 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?
>
It looks like this is moot anyway, I think the consensus is to remove
the feature and try again in release 11.
cheers
andrew
--
Andrew Dunstan 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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: ALTER enums (was Re: [COMMITTERS] pgsql: doc: first draft of Postgres 10 release notes)
2017-09-27 10:05 ALTER enums (was Re: [COMMITTERS] pgsql: doc: first draft of Postgres 10 release notes) Alvaro Herrera <alvherre@alvh.no-ip.org>
2017-09-27 12:50 ` Re: ALTER enums (was Re: [COMMITTERS] pgsql: doc: first draft of Postgres 10 release notes) Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
@ 2017-09-27 13:11 ` Alvaro Herrera <alvherre@alvh.no-ip.org>
0 siblings, 0 replies; 3+ messages in thread
From: Alvaro Herrera @ 2017-09-27 13:11 UTC (permalink / raw)
To: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>; +Cc: Bruce Momjian <bruce@momjian.us>; Tom Lane <tgl@sss.pgh.pa.us>; pgsql-hackers@postgresql.org
Andrew Dunstan wrote:
> It looks like this is moot anyway, I think the consensus is to remove
> the feature and try again in release 11.
Oh, crap, I didn't realize it had gone badly.
Thanks,
--
Á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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2017-09-27 13:11 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-09-27 10:05 ALTER enums (was Re: [COMMITTERS] pgsql: doc: first draft of Postgres 10 release notes) Alvaro Herrera <alvherre@alvh.no-ip.org>
2017-09-27 12:50 ` Re: ALTER enums (was Re: [COMMITTERS] pgsql: doc: first draft of Postgres 10 release notes) Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
2017-09-27 13:11 ` Re: ALTER enums (was Re: [COMMITTERS] pgsql: doc: first draft of Postgres 10 release notes) Alvaro Herrera <alvherre@alvh.no-ip.org>
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