Re: Adding a --quiet option to initdb

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Hallgren <thomas(at)tada(dot)se>
Cc: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org, James William Pye <james(dot)pye(at)icrossing(dot)com>, Devrim GUNDUZ <devrim(at)commandprompt(dot)com>, James William Pye <pgsql(at)jwp(dot)name>
Subject: Re: Adding a --quiet option to initdb
Date: 2006-01-27 15:09:00
Message-ID: 2198.1138374540@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Thomas Hallgren <thomas(at)tada(dot)se> writes:
> This is how I perceive the output from initdb:

> - The output lists settings for locale, encoding and buffer usage. Why
> are these specific settings be of special interest? Anyone with an
> interest in them knows where to find them anyway. This information is
> not important.
> - It lists (the successful creation of ) the internal directory
> structure of the data directory. This information is not important.
> - Some output is purely educational and thus belongs in the manual, not
> in a command output ("This user must also own the server process", "You
> can now start the database..."). This information is not important.
> - Lot's of info is printed about successful creation of configuration
> files, template databases, conversions, information schema, system
> views, that pg_authid and dependencies has been initialized, database
> copying, etc. This information is not important.

> I still think it's much better to have complete silence unless there are
> warnings and/or errors. That makes them much easier to spot. Right now I
> get a "WARNING: enabling "trust" authentication for local connections".
> Now this information *is* important. Unfortunately it's mixed in with
> all the rest unless I use a special redirect of stdout.

To apply your own argument, why is that important? Anyone with an
interest in the authentication settings knows where to find them anyway.

While we can probably all agree that it's not very interesting to
mention every single directory that initdb creates, I find it fairly
hard to buy an argument that some of the non-progress messages are
important and the others are not. Every one of them got put in
because someone thought it important.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2006-01-27 15:18:42 Re: Proposal: new pg_dump options --copy-delimiter and
Previous Message Mitchell Skinner 2006-01-27 15:00:21 Re: A note about testing EXEC_BACKEND on recent Linuxen

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-01-27 15:16:57 Re: BTree vacuum before page splitting
Previous Message NAKANO Yoshihisa 2006-01-27 13:49:12 Patch for ALTER TABLE / TYPE