pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Drop column constraint [FIXED]
Date: Fri, 30 Oct 2020 08:54:57 -0700 (PDT)
Message-ID: <alpine.LNX.2.20.2010300845490.24081@salmo.appl-ecosys.com> (raw)
In-Reply-To: <6710083f-90d2-d111-45dd-e6f4162f825e@aklaver.com>
References: <alpine.LNX.2.20.2010300825310.24081@salmo.appl-ecosys.com>
	<6710083f-90d2-d111-45dd-e6f4162f825e@aklaver.com>

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






view thread (3+ messages)  latest in thread

Message-ID: <alpine.LNX.2.20.2010300845490.24081@salmo.appl-ecosys.com>
Permalink:  ../alpine.LNX.2.20.2010300845490.24081@salmo.appl-ecosys.com/
Also on:    postgresql.org/message-id/alpine.LNX.2.20.2010300845490.24081@salmo.appl-ecosys.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: rshepard@appl-ecosys.com
  Subject: Re: Drop column constraint [FIXED]
  In-Reply-To: <alpine.LNX.2.20.2010300845490.24081@salmo.appl-ecosys.com>
  References: <alpine.LNX.2.20.2010300825310.24081@salmo.appl-ecosys.com> <6710083f-90d2-d111-45dd-e6f4162f825e@aklaver.com> <alpine.LNX.2.20.2010300845490.24081@salmo.appl-ecosys.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox