Re: Errands around AllocateDir()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Errands around AllocateDir()
Дата
Msg-id 21908.1512438411@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Errands around AllocateDir()  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
Michael Paquier <michael.paquier@gmail.com> writes:
> Note I am +/-0 with exposing ReadDirExtended in back-branches, because
> there is no use for it yet there.

My thought is basically that we might end up back-patching some change
that needs that.  Nothing I've done today requires it, but it seems like
a very harmless guard against future problems.

I am BTW wondering whether any of the other directory scan loops in
the backend ought to be converted from ReadDir to ReadDirExtended(LOG).
I'm just finishing up making ResetUnloggedRelations() go the other way,
because of the argument that failing to reset unlogged relations would
be a data corruption hazard.  But there may well be other cases where
the best thing on balance is to log the problem and press on.  With
the changes we've made today, it's a very easy fix to flip from one
behavior to the other.

            regards, tom lane


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Error handling (or lack of it) in RemovePgTempFilesInDir
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Add PGDLLIMPORT lines to some variables