Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gYz5Q-0000s7-4k for pgsql-general@arkaria.postgresql.org; Mon, 17 Dec 2018 20:01:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gYz5O-0008J9-TF for pgsql-general@arkaria.postgresql.org; Mon, 17 Dec 2018 20:01:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gYz5O-0008J2-IN for pgsql-general@lists.postgresql.org; Mon, 17 Dec 2018 20:01:54 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gYz5M-0005ts-6w for pgsql-general@postgresql.org; Mon, 17 Dec 2018 20:01:53 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id C6A0899346 for ; Mon, 17 Dec 2018 12:01:49 -0800 (PST) Date: Mon, 17 Dec 2018 12:01:49 -0800 (PST) From: Rich Shepard Reply-To: Rich Shepard To: pgsql-general@postgresql.org Subject: Re: Alter table column constraint In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (LNX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, 17 Dec 2018, Rich Shepard wrote: > I want to alter a term in a column's constraint to allow only specified > strings as attributes and have not found how to do this in the docs (using > version 10 docs now). There is an alter table command that allows renaming > a constraint but I've not seen how to modify the constraint itself. Is the procedure to drop the current check constraint then add the revised one? Rich