Re: pg_archivecleanup bug - Mailing list pgsql-hackers

From Robert Haas
Subject Re: pg_archivecleanup bug
Date
Msg-id CA+TgmoYOYF8Er0S2ZBxXTr=OEE0Q1GCX=OZDZC7OuwGG7PxA-g@mail.gmail.com
Whole thread Raw
In response to Re: pg_archivecleanup bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pg_archivecleanup bug
List pgsql-hackers
On Thu, Dec 5, 2013 at 6:15 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> In general, I think there is no excuse for code in the backend to use
> readdir() directly; it should be using ReadDir(), which takes care of this
> as well as error reporting.

My understanding is that the fd.c infrastructure can't be used in the
postmaster.

I agree that sucks.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Time-Delayed Standbys
Next
From: Fabrízio de Royes Mello
Date:
Subject: Re: Time-Delayed Standbys