Re: [PATCH] Alter or rename enum value - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCH] Alter or rename enum value
Date
Msg-id 17893.1473193170@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCH] Alter or rename enum value  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: [PATCH] Alter or rename enum value
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Are we also going to have an exists test for the original thing being 
> renamed? Exists tests on renames do strike me as somewhat cumbersome, to 
> say the least.

I'm less opposed to that part, because it's at least got *some* precedent
in existing RENAME features.  But the fact that RENAME COLUMN hasn't got
it still makes me wonder why this is the first place that's getting it
("it" being an EXISTS test that applies to a sub-object rather than the
whole object being ALTER'd).

Bottom line here is that I'd rather commit ALTER TYPE RENAME VALUE with
no EXISTS features and then see it accrete those features together with
other types of RENAME, when and if there's a will to make that happen.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: patch: function xmltable
Next
From: Christoph Berg
Date:
Subject: Re: [PATCH] COPY vs \copy HINT