Re: [PATCH] Alter or rename enum value
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: emre@hasegeli.com
Cc: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>, Andrew Dunstan <andrew@dunslane.net>, Matthias Kurz <m.kurz@irregular.at>, Jim Nasby <Jim.Nasby@bluetreble.com>, "David G. Johnston" <david.g.johnston@gmail.com>
Date: 2016-09-03T20:48:04Z
Lists: pgsql-hackers
Emre Hasegeli <emre@hasegeli.com> writes: > Other than these, it looks good to me. I am marking it as Ready for Committer. I started looking at this patch. I'm kind of unhappy with having *both* IF EXISTS and IF NOT EXISTS options on the statement, especially since the locations of those phrases in the syntax seem to have been chosen with a dartboard. This feels way more confusing than it is useful. Is there really a strong use-case for either option? I note that ALTER TABLE RENAME COLUMN, which is probably used a thousand times more often than this will be, has so far not grown either kind of option, which sure makes me think that this proposal is getting ahead of itself. regards, tom lane
Commits
-
Relax transactional restrictions on ALTER TYPE ... ADD VALUE (redux).
- 212fab9926b2 12.0 landed
-
Partially restore comments discussing enum renumbering hazards.
- c9e2e2db5c20 9.4.0 cited
-
Allow adding values to an enum type created in the current transaction.
- 7b90469b7176 9.3.0 cited