| From: | Thomas Hallgren <thomas(at)tada(dot)se> |
|---|---|
| To: | Devrim GUNDUZ <devrim(at)commandprompt(dot)com> |
| Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Adding a --quiet option to initdb |
| Date: | 2006-01-25 18:23:19 |
| Message-ID: | 43D7C217.5080906@tada.se |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-patches |
Devrim GUNDUZ wrote:
> Hi,
>
> On Wed, 2006-01-25 at 11:28 -0500, Tom Lane wrote:
>> Devrim GUNDUZ <devrim(at)commandprompt(dot)com> writes:
>>> Attached is a patch which adds --quiet and --q option to initdb.
>> Why is this a good idea?
>
> I was playing with 8.2 RPM init script and thought that instead of
> directing the output to /dev/null, it would be better to use a command
> line option for that. Also, we are designing a new installer project and
> --quiet might help us.
>
> I would rise this idea in -hackers before providing a patch, but since
> this is my first patch, I thought it would be a good exercise for me.
>
> Regards,
Most *nix commands are quiet by default. Most windows commands are verbose and some of them
can be made to shut up using special '--quite' like options. Other can't even do that.
Personally, I think initdb (and most other commands as well) should be silent unless
something goes wrong or unless I explicitly tell it to be verbose. In other words, don't
repeat bad practices from Windows by introducing --quiet. Make it completely silent by
default instead and then introduce a --verbose.
Regards,
Thomas Hallgren
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andrew - Supernews | 2006-01-25 18:24:26 | Re: Cleaning up the INET/CIDR mess |
| Previous Message | Greg Stark | 2006-01-25 18:17:22 | Re: Cleaning up the INET/CIDR mess |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2006-01-25 19:08:49 | Re: Adding a --quiet option to initdb |
| Previous Message | Greg Stark | 2006-01-25 18:07:36 | Re: [PATCHES] Adding a --quiet option to initdb |