Re: pg_archivecleanup bug

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: pg_archivecleanup bug
Дата
Msg-id CA+TgmoYfpZFKjpac2EPP2RcjnEjE0L9A=UDFr_iKaWVtwm5mMQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_archivecleanup bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pg_archivecleanup bug
Список pgsql-hackers
On Thu, Dec 5, 2013 at 6:15 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> But the other usages seem to be in assorted utilities, which
> will need to do it right for themselves.  initdb.c's walkdir() seems to
> have it right and might be a reasonable model to follow.  Or maybe we
> should invent a frontend-friendly version of ReadDir() rather than
> duplicating all the error checking code in ten-and-counting places?

If there's enough uniformity in all of those places to make that
feasible, it certainly seems wise to do it that way.  I don't know if
that's the case, though - e.g. maybe some callers want to exit and
others do not.  pg_resetxlog wants to exit; pg_archivecleanup and
pg_standby most likely want to print an error and carry on.

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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: pg_archivecleanup bug
Следующее
От: Euler Taveira
Дата:
Сообщение: Re: JSON decoding plugin