Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1adhhO-0003wH-Bz for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Mar 2016 17:15:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1adhhN-0002Cw-BA for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Mar 2016 17:15:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1adhg3-0000gy-As for pgsql-hackers@postgresql.org; Wed, 09 Mar 2016 17:13:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1adhg0-0003lV-4R for pgsql-hackers@postgresql.org; Wed, 09 Mar 2016 17:13:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u29HDWeg028168; Wed, 9 Mar 2016 12:13:32 -0500 From: Tom Lane To: Andrew Dunstan cc: Matthias Kurz , pgsql-hackers@postgresql.org Subject: Re: Alter or rename enum value In-reply-to: <56E05635.70908@dunslane.net> References: <56E049CC.8010201@dunslane.net> <25605.1457539654@sss.pgh.pa.us> <56E05635.70908@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Wed, 09 Mar 2016 11:58:29 -0500" Date: Wed, 09 Mar 2016 12:13:32 -0500 Message-ID: <28167.1457543612@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Andrew Dunstan writes: > On 03/09/2016 11:07 AM, Tom Lane wrote: >> I have a vague recollection that we discussed this at the time the enum >> stuff went in, and there are concurrency issues? Don't recall details >> though. > Rings a vague bell, but should it be any worse than adding new labels? I think what I was recalling is the hazards discussed in the comments for RenumberEnumType. However, the problem there is that a backend could make inconsistent ordering decisions due to seeing two different pg_enum rows under different snapshots. Updating a single row to change its name doesn't seem to have a comparable hazard, and it wouldn't affect ordering anyway. So it's probably no worse than any other object-rename situation. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers