Re: pg_upgrade should truncate/remove its logs before running

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Justin Pryzby <pryzby(at)telsasoft(dot)com>
Cc: Daniel Gustafsson <daniel(at)yesql(dot)se>, Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Bruce Momjian <bruce(at)momjian(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: pg_upgrade should truncate/remove its logs before running
Date: 2021-12-22 07:47:12
Message-ID: YcLYAPsiDlWF6w7o@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Dec 20, 2021 at 09:39:26PM -0600, Justin Pryzby wrote:
> On Mon, Dec 20, 2021 at 08:21:51PM +0900, Michael Paquier wrote:
>> we could choose something simpler for the default, like
>> "pg_upgrade_log". I don't have a good history in naming new things,
>> though :)
>
> I specifically called it .d to made it obvious that it's a dir - nearly
> everything that ends in "log" is a file, so people are likely to run "rm" and
> "less" on it - including myself.

Okay.

>> .gitignore should be updated, I guess?
>
> Are you suggesting to remove these ?
> -/pg_upgrade_internal.log
> -/loadable_libraries.txt

Yep, it looks so as these are part of the logs, the second one being a
failure state.

> -/reindex_hash.sql

But this one is not, no?

>> Besides, this patch has no documentation.
>
> TBH I'm not even sure if the dir needs to be configurable ?

I'd think it is better to have some control on that. Not sure what
the opinion of others is on this specific point, though.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Shinya Kato 2021-12-22 07:50:34 Re: Emit a warning if the extension's GUC is set incorrectly
Previous Message Peter Smith 2021-12-22 07:43:39 Re: row filtering for logical replication