Re: pgsql/src/backend/utils/adt (ri_triggers.c) - Mailing list pgsql-committers

From Peter Eisentraut
Subject Re: pgsql/src/backend/utils/adt (ri_triggers.c)
Date
Msg-id Pine.LNX.4.21.0009262121420.515-100000@peter
Whole thread Raw
In response to Re: pgsql/src/backend/utils/adt (ri_triggers.c)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-committers
Tom Lane writes:

> > Tom Lane writes:
> >> It'll certainly be necessary for xact abort to restore the original
> >> user ID setting.  Peter, did you do that already?
>
> > That's done by the setjmp/longjmp, no?
>
> Not automatically, surely.

Duh, of couse not.  What was I smoking when I read the libc manual?  The
odd thing is that I did test for this and I could not get a failure (i.e.,
current_user != session_user after elog due to RI violation).  Anyway, the
fix is on the way.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql/src/backend/utils/adt (ri_triggers.c)
Next
From: Peter Eisentraut
Date:
Subject: Re: pgsql/src/backend/utils/adt (ri_triggers.c)