Re: Legacy foreign keys - Mailing list pgsql-admin

From Tom Lane
Subject Re: Legacy foreign keys
Date
Msg-id 18279.1201845349@sss.pgh.pa.us
Whole thread Raw
In response to Re: Legacy foreign keys  ("Peter Koczan" <pjkoczan@gmail.com>)
Responses Re: Legacy foreign keys  ("Peter Koczan" <pjkoczan@gmail.com>)
List pgsql-admin
"Peter Koczan" <pjkoczan@gmail.com> writes:
> I finally found more time to test this more extensively. i'm still
> running into an issue with this, although it's different this time.
> There are no errors printed to the terminal, but neither the foreign
> key nor the trigger get made.

It looks like you are trying to restore from a selective dump (-t
switch) that includes only one of the two tables involved in the FK
constraint.  The backend logic for converting triggers to proper FK
constraints can only work if it sees both tables (and their triggers)
created during a single session.

            regards, tom lane

pgsql-admin by date:

Previous
From: Brad Nicholson
Date:
Subject: PITR and Failover
Next
From: Guillaume Lelarge
Date:
Subject: Re: PITR and Failover