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 1gYzAJ-000183-SE for pgsql-general@arkaria.postgresql.org; Mon, 17 Dec 2018 20:07:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gYzAH-0007nr-TA for pgsql-general@arkaria.postgresql.org; Mon, 17 Dec 2018 20:06:57 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gYzAH-0007mq-Jz for pgsql-general@lists.postgresql.org; Mon, 17 Dec 2018 20:06:57 +0000 Received: from lists.commandprompt.com ([69.168.55.30]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gYzAD-0006Tg-Jm for pgsql-general@postgresql.org; Mon, 17 Dec 2018 20:06:56 +0000 Received: from [192.168.50.9] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id D6E99597; Mon, 17 Dec 2018 12:06:50 -0800 (PST) Received: from c-73-97-49-9.hsd1.wa.comcast.net ([73.97.49.9] helo=[192.168.50.9]) by assp.commandprompt.com with SMTPSA(TLSv1_2 ECDHE-RSA-AES128-GCM-SHA256) (2.5.1); 17 Dec 2018 12:06:50 -0800 Subject: Re: Alter table column constraint To: Rich Shepard , pgsql-general@postgresql.org References: From: "Joshua D. Drake" Organization: Command Prompt, Inc. Message-ID: <0d4474ae-9cd8-ee3b-0f95-e5f37f4daaa2@commandprompt.com> Date: Mon, 17 Dec 2018 12:06:50 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Assp-Version: 2.5.1(16177) on assp.commandprompt.com X-Assp-ID: assp.commandprompt.com m1-77210-10891 X-Assp-Session: 7FCE58944408 (mail 1) X-Assp-Original-Subject: Re: Alter table column constraint X-Assp-Client-SSL: yes List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/17/18 12:01 PM, Rich Shepard wrote: > 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? Or the other way around but yes. JD > > Rich > -- Command Prompt, Inc. || http://the.postgres.company/ || @cmdpromptinc *** A fault and talent of mine is to tell it exactly how it is. *** PostgreSQL centered full stack support, consulting and development. Advocate: @amplifypostgres || Learn: https://postgresconf.org ***** Unless otherwise stated, opinions are my own. *****