Re: Incorrect error handling for two-phase state files resulting indata loss - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Incorrect error handling for two-phase state files resulting indata loss
Date
Msg-id 20180718081818.GG8565@paquier.xyz
Whole thread Raw
In response to Incorrect error handling for two-phase state files resulting in dataloss  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Incorrect error handling for two-phase state files resulting indata loss  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On Mon, Jul 09, 2018 at 02:03:09PM +0900, Michael Paquier wrote:
> I think that we really need to harden things, by making
> ReadTwoPhaseFile() fail hard is it finds something unexpected, which is
> in this case anything except trying to open a file which fails on
> ENOENT, and that this stuff should be back-patched.

Rebased as attached because of the conflicts from 811b6e3.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: [HACKERS] Re: [COMMITTERS] pgsql: Remove pgbench "progress" testpending solution of its timing is (fwd)
Next
From: Heikki Linnakangas
Date:
Subject: Re: cursors with prepared statements