Re: referential integrity violation - Mailing list pgsql-general

From Stephan Szabo
Subject Re: referential integrity violation
Date
Msg-id 20021018081143.X23987-100000@megazone23.bigpanda.com
Whole thread Raw
In response to referential integrity violation  (mk@fashaf.co.za)
List pgsql-general
On Fri, 18 Oct 2002 mk@fashaf.co.za wrote:

> Hi guys
>
> I have created a Pg DB, Ive included 2 of the tables.
> When inserting non NULL values everything works just fine,
> but when i want to leave a table empty i get the following error:
>
> EXEC: ERROR: referential integrity violation - key referenced from pc not found in slip_printer
>
> Im recieving the information from a Perl CGI form that is filled in and then INSERT it using perl DBI
>
> If any more information is needed please let me know. As far as i know i should be allowed to have null.

What is the actual insert statement giving the error (if you need
to you can turn on query logging to see)?  NULLs should work fine
but I'd need a test statement to check.


pgsql-general by date:

Previous
From: Darren Ferguson
Date:
Subject: Re: referential integrity violation
Next
From: Bruce Momjian
Date:
Subject: Re: pg_attribute always grow...