Re: Tighten error control for OpenTransientFile/CloseTransientFile - Mailing list pgsql-hackers

From Georgios Kokolatos
Subject Re: Tighten error control for OpenTransientFile/CloseTransientFile
Date
Msg-id 155188409238.16480.11082213460365887952.pgcf@coridan.postgresql.org
Whole thread Raw
In response to Re: Tighten error control for OpenTransientFile/CloseTransientFile  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Tighten error control for OpenTransientFile/CloseTransientFile
List pgsql-hackers
Overall the patch looks good and according to the previous discussion fulfils its purpose.

It might be worthwhile to also check for errors on close in SaveSlotToPath().

        pgstat_report_wait_end();

        CloseTransientFile(fd);

        /* rename to permanent file, fsync file and directory */
        if (rename(tmppath, path) != 0)

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] CLUSTER command progress monitor
Next
From: "Karl O. Pinc"
Date:
Subject: Re: Patch to document base64 encoding