Re: Drop column constraint [FIXED]

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Drop column constraint [FIXED]
Date: 2020-10-30 15:54:57
Message-ID: alpine.LNX.2.20.2010300845490.24081@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 30 Oct 2020, Adrian Klaver wrote:

> It should be:
> alter table locations drop constraint 'constraint_name';

Adrian,

Yes, I forgot to quote the constraint_name, And, I used the DDL name
'unique' rather than the internal name "locations_loc_nbr_key". Using the
latter, and adding 'cascade' (because the dependent table is empty) did the
trick.

Thank you,

Rich

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2020-10-30 15:57:48 Re: Drop column constraint [FIXED]
Previous Message Chris Sterritt 2020-10-30 15:38:43 Re: Drop column constraint