Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1adgcJ-0000si-Ba for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Mar 2016 16:05:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1adgcI-0006DB-UV for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Mar 2016 16:05:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1adgcH-00066Q-4O for pgsql-hackers@postgresql.org; Wed, 09 Mar 2016 16:05:41 +0000 Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1adgcE-0007v1-AM for pgsql-hackers@postgresql.org; Wed, 09 Mar 2016 16:05:39 +0000 Received: from mfilter16-d.gandi.net (mfilter16-d.gandi.net [217.70.178.144]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id 4E6E2FB8D5; Wed, 9 Mar 2016 17:05:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter16-d.gandi.net Received: from relay6-d.mail.gandi.net ([IPv6:::ffff:217.70.183.198]) by mfilter16-d.gandi.net (mfilter16-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id PsX1wBhb_5Df; Wed, 9 Mar 2016 17:05:33 +0100 (CET) X-Originating-IP: 98.122.164.227 Received: from [192.168.10.146] (unknown [98.122.164.227]) (Authenticated sender: adsend@dunslane.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 6E313FB8DC; Wed, 9 Mar 2016 17:05:33 +0100 (CET) Subject: Re: Alter or rename enum value To: Matthias Kurz , pgsql-hackers@postgresql.org References: From: Andrew Dunstan Message-ID: <56E049CC.8010201@dunslane.net> Date: Wed, 9 Mar 2016 11:05:32 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 03/09/2016 09:56 AM, Matthias Kurz wrote: > Hi! > > Right now it is not possible to rename an enum value. > Are there plans to implement this anytime soon? > I had a bit of a discussion on the IRC channel and it seems it > shouldn't be that hard to implement this. > Again, I am talking about renaming the values, not the enum itself. > > I don't know of any plans, but it would be a useful thing. I agree it wouldn't be too hard. The workaround is to do an update on pg_enum directly, but proper SQL support would be much nicer. cheers andrew -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers