Re: pg_upgrade should truncate/remove its logs before running

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: pg_upgrade should truncate/remove its logs before running
Дата
Msg-id c7615cf3-621a-7fc4-79ec-6b2554cd5b68@enterprisedb.com
обсуждение исходный текст
Ответ на Re: pg_upgrade should truncate/remove its logs before running  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: pg_upgrade should truncate/remove its logs before running  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
On 16.12.21 02:39, Michael Paquier wrote:
> On Wed, Dec 15, 2021 at 04:13:10PM -0600, Justin Pryzby wrote:
>> On Wed, Dec 15, 2021 at 05:04:54PM -0500, Andrew Dunstan wrote:
>>> The directory name needs to be predictable somehow, or maybe optionally
>>> set as a parameter. Having just a timestamped directory name would make
>>> life annoying for a poor buildfarm maintainer. Also, please don't change
>>> anything before I have a chance to adjust the buildfarm code to what is
>>> going to be done.
>>
>> Feel free to suggest the desirable behavior.
>> It could write to pg_upgrade.log/* and refuse to run if the dir already exists.
> 
> Andrew's point looks rather sensible to me.  So, this stuff should
> have a predictable name (pg_upgrade.log, pg_upgrade_log or upgrade_log
> would be fine).  But I would also add an option to be able to define a
> custom log path.  The latter would be useful for the regression tests
> so as everything gets could get redirected to a path already filtered
> out.

Could we make it write just one log file?  Is having multiple log files 
better?



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

Предыдущее
От: Ronan Dunklau
Дата:
Сообщение: Re: Use generation context to speed up tuplesorts
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: pg_upgrade should truncate/remove its logs before running