Reset snapshot export state on the transaction abort - Mailing list pgsql-hackers

From Dilip Kumar
Subject Reset snapshot export state on the transaction abort
Date
Msg-id CAFiTN-s0zA1Kj0ozGHwkYkHwa5U0zUE94RSc_g81WrpcETB5=w@mail.gmail.com
Whole thread Raw
Responses Re: Reset snapshot export state on the transaction abort  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
As reported at [1], if the transaction is aborted during export
snapshot then ExportInProgress and SavedResourceOwnerDuringExport are
not getting reset and that is throwing an error
"clearing exported snapshot in wrong transaction state" while
executing the next command.  The attached patch clears this state if
the transaction is aborted.

[1] https://www.postgresql.org/message-id/CAFiTN-tqopqpfS6HHug2nnOGieJJ_nm-Nvy0WBZ=Zpo-LqtSJA@mail.gmail.com

-- 
Regards,
Dilip Kumar
EnterpriseDB: http://www.enterprisedb.com

Attachment

pgsql-hackers by date:

Previous
From: Isaac Morland
Date:
Subject: Re: Proposal: allow database-specific role memberships
Next
From: Fujii Masao
Date:
Subject: Re: Inconsistency in startup process's MyBackendId and procsignal array registration with ProcSignalInit()