pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rod Taylor <rbt@rbt.ca>
To: Raymond Chui <raymond.chui@noaa.gov>
Cc: pgsql-general@postgresql.org
Cc: pgsql-admin@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: Why table has drop, but the foreign key still there?
Date: Wed, 13 Aug 2003 15:54:19 -0400
Message-ID: <1060804459.11688.80.camel@jester> (raw)
In-Reply-To: <3F3A8010.9030701@noaa.gov>
References: <3F3A8010.9030701@noaa.gov>

> insert into state (state_code,state) values ('GU','Guam');
> drop table whitepage;
> delete from state where state_code = 'GU';
> ERROR:   Relation "whitepage" does not exist

Old version of PostgreSQL?  Effort went into cleaning up inter-object
dependencies in 7.3.  I don't recall having that particular issue in
versions prior either.

That said, you can remove the triggers that are on table "state"
beginning with the characters "RI".  psql -d state will tell you what
they are.

Attachments:

  signature.asc (application/pgp-signature, 186B) download

view thread (4+ messages)

Message-ID: <1060804459.11688.80.camel@jester>
Permalink:  ../1060804459.11688.80.camel@jester/
Also on:    postgresql.org/message-id/1060804459.11688.80.camel@jester

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rbt@rbt.ca, raymond.chui@noaa.gov, pgsql-general@postgresql.org, pgsql-admin@postgresql.org
  Subject: Re: Why table has drop, but the foreign key still there?
  In-Reply-To: <1060804459.11688.80.camel@jester>

* 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