Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp> writes:
>> When the RI triggers lock the PK table, temporarily switch the current user
>> id to the owner of the PK table, to avoid permission problems.
> Are there any changes for Stephan's question ?
> Stephan Szabo wrote:
>> As a question, since I don't have a source tree available here at work,
>> will there be an issue if an elog occurs between the various two user id
>> sets? Just wondering, because most of those statements are do some
>> SPI thing or elog.
It'll certainly be necessary for xact abort to restore the original
user ID setting. Peter, did you do that already?
regards, tom lane