Re: undeleteable records - Mailing list pgsql-general

From Tom Lane
Subject Re: undeleteable records
Date
Msg-id 26457.995402985@sss.pgh.pa.us
Whole thread Raw
In response to undeleteable records  (Tara Cooper <carat@pantz.com>)
List pgsql-general
Tara Cooper <carat@pantz.com> writes:
> <html>
> Has anyone encountered a problem where a delete sql statement works (no
> parser errors) but always returns a "DELETE 0" value, even when
> I'm sure the record I'm selecting for delete is in the table?  I
> have also tried deleting the same record by specifying a different field
> value, with the same results, as well as trying all of this with multiple
> records in the same table.  None of the records will delete.

Please don't send HTML mail to the lists...

I wonder whether you haven't got a foreign key relationship that forbids
the delete.  Or a miswritten user-defined ON DELETE trigger.

            regards, tom lane

pgsql-general by date:

Previous
From: will trillich
Date:
Subject: Re: bit operations
Next
From: "Gregory Wood"
Date:
Subject: Re: psql -l