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

From JanWieck@t-online.de (Jan Wieck)
Subject Re: Foreign key bugs (Re: [BUGS] "New" bug?? Serious - crashesbackend.)
Date
Msg-id 200007112218.AAA20258@hot.jw.home
Whole thread Raw
In response to Re: Foreign key bugs (Re: [BUGS] "New" bug?? Serious - crashesbackend.)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> "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.
   But  even if the trigger knows the OID of the table to query,   can it prepare a plan to do so via SPI? I think no.


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #




pgsql-hackers by date:

Previous
From: JanWieck@t-online.de (Jan Wieck)
Date:
Subject: Re: Foreign key bugs + other problems
Next
From: JanWieck@t-online.de (Jan Wieck)
Date:
Subject: Re: update on TOAST status'