Re: pg_archivecleanup bug

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Kevin Grittner <kgrittn(at)ymail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_archivecleanup bug
Date: 2013-12-06 15:45:40
Message-ID: CA+TgmoYOYF8Er0S2ZBxXTr=OEE0Q1GCX=OZDZC7OuwGG7PxA-g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Dec 5, 2013 at 6:15 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabrízio de Royes Mello 2013-12-06 15:56:54 Re: Time-Delayed Standbys
Previous Message Robert Haas 2013-12-06 15:36:18 Re: Time-Delayed Standbys