Re: Foreign key bugs (Re: [BUGS] "New" bug?? Serious - crashesbackend.)
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: "Stephan Szabo" <sszabo@kick.com>
Cc: "Jan Wieck" <JanWieck@yahoo.com>, pgsql-hackers@postgresql.org
Date: 2000-07-11T21:39:04Z
Lists: pgsql-bugs, pgsql-hackers
"Stephan Szabo" <sszabo@kick.com> writes: > Also, I realized something else that is a little wierd. When a temporary > table shadows a permanent table that you've made a foreign key reference > to, which table should it be going to check the constraint? Seems to me it should certainly be going to the permanent table, which is another argument in favor of making the link via OID not table name. The existing code will get this wrong. regards, tom lane