Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewpC2-0005xl-95 for pgsql-docs@arkaria.postgresql.org; Fri, 16 Mar 2018 13:14:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ewpC1-00023k-9m for pgsql-docs@arkaria.postgresql.org; Fri, 16 Mar 2018 13:14:45 +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.89) (envelope-from ) id 1ewpC1-00023b-3w for pgsql-docs@lists.postgresql.org; Fri, 16 Mar 2018 13:14:45 +0000 Received: from meldrar.postgresql.org ([2a02:c0:301:0:ffff::31]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewpBv-00015z-ID for pgsql-docs@lists.postgresql.org; Fri, 16 Mar 2018 13:14:41 +0000 Received: from pool-98-116-99-252.nycmny.fios.verizon.net ([98.116.99.252] helo=ph33r-retina.home) by meldrar.postgresql.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewpBq-0001g6-Er; Fri, 16 Mar 2018 13:14:38 +0000 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Can we only add values to enums? From: "Jonathan S. Katz" In-Reply-To: Date: Fri, 16 Mar 2018 09:14:31 -0400 Cc: brian@traceme.com, pgsql-docs@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <9BE4F44F-4D9B-43C8-82D5-9B26902EC255@postgresql.org> References: <152089733343.1222.6927268289645380498@wrigleys.postgresql.org> To: Euler Taveira X-Mailer: Apple Mail (2.3273) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Mar 15, 2018, at 11:33 PM, Euler Taveira = wrote: >=20 > 2018-03-12 20:28 GMT-03:00 PG Doc comments form = : >> I need to add a value to an enum, so I found this page, which = answered my >> question. However, I found it quite confusing that it only documents = adding >> a value. I would expect it to also document how to remove a value = from an >> enum? Is this not possible? If not, I consider it a bug. But either = way, if >> it is not possible, you should explicitly document it on this page. >>=20 > If it is not document, this means that it is not supported. It is not > a bug. It is by design. Read the discussion about this feature at [1]. > Removing a enum value requires a table rewrite. I'm not sure it is > worth a note. I would say that=E2=80=99s the exact reason why it should be documented, so it=E2=80=99s clear that it was by design. We could also redirect people to DOMAINs if they need more flexibility in what is added/removed from an =E2=80=9Cenum-like=E2=80=9D = type. Jonathan