pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
foreign key question: the backend end the connection
3+ messages / 3 participants
[nested] [flat]

* foreign key question: the backend end the connection
@ 2000-10-10 11:58  lt <ltshadow@basecity.com>
  0 siblings, 2 replies; 3+ messages in thread

From: lt @ 2000-10-10 11:58 UTC (permalink / raw)
  To: pgsql-admin

Hi,
   I am using Postgresql 7.0.2, and have used some foreign key in my database, but I get some error like "the backend ended the connection" where I am trying to insert or delete a row to the master table(Delete cascade and update cascade). Of course, this error is no use to find the reason. So I am forced to forget foreign keys.


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: foreign key question: the backend end the connection
@ 2000-10-10 16:33  Stephan Szabo <sszabo@megazone23.bigpanda.com>
  parent: lt <ltshadow@basecity.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Stephan Szabo @ 2000-10-10 16:33 UTC (permalink / raw)
  To: lt <ltshadow@basecity.com>; +Cc: pgsql-admin


Have you renamed any tables used in the foreign keys
(or dumped and restored with different names or some
missing tables).  Under 7.0.2 and earlier there is
a problem with postgres crashing if a constraint trigger
has bad values (due to renames or incomplete restores).
This should be fixed for 7.1 with a message that it's
unable to find the tablename.  I believe that if you
look through the archives (I forget which list though),
you will find a patch for 7.0.2 that will turn the
crash into an exception message with more information.

Stephan Szabo
sszabo@bigpanda.com

On Tue, 10 Oct 2000, lt wrote:

> Hi,
>    I am using Postgresql 7.0.2, and have used some foreign key in my database, but I get some error like "the backend ended the connection" where I am trying to insert or delete a row to the master table(Delete cascade and update cascade). Of course, this error is no use to find the reason. So I am forced to forget foreign keys.
> 




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: foreign key question: the backend end the connection
@ 2000-10-10 17:22  Gavin M. Roy <gmr@readysetnet.com>
  parent: lt <ltshadow@basecity.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Gavin M. Roy @ 2000-10-10 17:22 UTC (permalink / raw)
  To: lt <ltshadow@basecity.com>; +Cc: pgsql-admin

This happens for me when the tables referenced in the foreign key don't
exisit.  Hope that helps!

Gavin

lt wrote:

> Hi,   I am using Postgresql 7.0.2, and have used some foreign key in
> my database, but I get some error like "the backend ended the
> connection" where I am trying to insert or delete a row to the master
> table(Delete cascade and update cascade). Of course, this error is no
> use to find the reason. So I am forced to forget foreign keys.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2000-10-10 17:22 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-10-10 11:58 foreign key question: the backend end the connection lt <ltshadow@basecity.com>
2000-10-10 16:33 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2000-10-10 17:22 ` Gavin M. Roy <gmr@readysetnet.com>

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