Re: Foreign key bugs (Re: [BUGS] "New" bug?? Serious - crashesbackend.)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Stephan Szabo" <sszabo(at)kick(dot)com>
Cc: "Jan Wieck" <JanWieck(at)yahoo(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Foreign key bugs (Re: [BUGS] "New" bug?? Serious - crashesbackend.)
Date: 2000-07-11 21:39:04
Message-ID: 26564.963351544@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

"Stephan Szabo" <sszabo(at)kick(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2000-07-11 21:47:58 Re: Foreign key bugs + other problems
Previous Message Jan Wieck 2000-07-11 21:30:06 Re: Foreign key bugs + other problems

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2000-07-11 21:47:58 Re: Foreign key bugs + other problems
Previous Message Jan Wieck 2000-07-11 21:30:06 Re: Foreign key bugs + other problems