Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> writes:
> Hmm, the comment specifically talks about deferrable RI checks. I wonder
> if we could skip that when there's no deferred triggers queued?
The point of the comment is that if the FK isn't deferred then it will
have been executed already (at completion of the preceding INSERT).
I'd be a bit worried about relying on that, though, because of nested
query scenarios (eg, ON INSERT trigger fires an update on some
previously-inserted row) and the possibility of deferral status changing
regards, tom lane
In response to
pgsql-bugs by date
|Next:||From: Konstantin||Date: 2009-02-12 23:31:06|
|Subject: Re: BUG #4648: needless deadlock on tables having foreign-key|
|Previous:||From: John R Pierce||Date: 2009-02-12 18:53:30|
|Subject: Re: BUG #4646: Default password is patently absurd|