Restore CurrentUserId only if 'prevUser' is valid when abort transaction

Поиск
Список
Период
Сортировка
От Richard Guo
Тема Restore CurrentUserId only if 'prevUser' is valid when abort transaction
Дата
Msg-id CAN_9JTxECSb=pEPcb0a8d+6J+bDcOZ4=DgRo_B7Y5gRHJUM=Rw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Restore CurrentUserId only if 'prevUser' is valid when aborttransaction
Список pgsql-hackers
Hi,

This is a follow-up to the issue described in thread

In short, during the first transaction starting phase within a backend, if
there is an 'ereport' after setting transaction state but before saving
CurrentUserId into 'prevUser' in TransactionStateData, 'prevUser' will remain
as InvalidOid. Then in AbortTransaction(), CurrentUserId is restored with
'prevUser'. As a result, CurrentUserId will be InvalidOid in the rest of the
session.

Attached is a patch that fixes this issue.

Thanks
Richard


Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Imai, Yoshikazu"
Дата:
Сообщение: RE: Why we allow CHECK constraint contradiction?
Следующее
От: legrand legrand
Дата:
Сообщение: Re: [Proposal] Add accumulated statistics for wait event