From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, Daniel Gustafsson <daniel(at)yesql(dot)se>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Add version and data directory to initdb output |
Date: | 2022-04-21 14:39:17 |
Message-ID: | CAKFQuwYTtKeLnsHgo71BWeXHk_m+PZFdpVzEECr=RfZYLJa04A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Apr 21, 2022 at 7:18 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com> writes:
> > I'm not a particular fan of the current initdb output and it could use a
> > general revision IMO. If you want to look into that, please do. But
> > for your particular proposed addition, let's put it somewhere it makes
> > sense either in the current scheme or a future scheme when that is done.
>
> TBH, I think we should reject the current proposal outright.
> The target directory's name already appears twice in initdb's output;
> we do not need a third time. And as for the version, if you want that
> you can get it from "initdb --version".
>
>
I don't really see a reason not to add the version to the log output, if
just for simplicity and having a self-contained stream of content.
I'm off my desire to have it be the nearly last thing to print though;
having it print first actually works better since if you are interactive
you'll see it pop-up just after pressing enter. Subconsciously you'll know
what you are expecting to see there and if it just happens to be different
you'll probably notice it. Solutions requiring additional commands/effort
to retrieve the version presume one is expecting/caring about checking that
value specifically, and while that may be true the simplicity combined with
the benefit to people not expecting there to be an issue make adding it
alongside the various others key=value settings a no-brainer for me.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Adam Lippai | 2022-04-21 14:41:17 | COPY TO STDOUT Apache Arrow support |
Previous Message | Michael Banck | 2022-04-21 14:24:43 | Re: Add version and data directory to initdb output |