Re: Failure with 004_logrotate in prairiedog - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Failure with 004_logrotate in prairiedog
Date
Msg-id 234637.1626704342@sss.pgh.pa.us
Whole thread Raw
In response to Re: Failure with 004_logrotate in prairiedog  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
List pgsql-hackers
Kyotaro Horiguchi <horikyota.ntt@gmail.com> writes:
> When rotation happens, the metainfo file is once removed then
> created. If slurp_file in the metafile-checking loop hits the gap, the
> slurp_file fails with ENOENT.

Oh!  Yeah, that's dumb, we should fix it to use rename().  Can't blame
platform's rename() if it's not being used.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: O_DIRECT on macOS
Next
From: Tom Lane
Date:
Subject: Re: Failure with 004_logrotate in prairiedog