Re: [HACKERS] Adding a --quiet option to initdb

2006-01-27 Thread Joshua D. Drake
to creating directory /home/postgres/v82/data ... ok creating subdirectories ... ok selecting default max_connections ... 100 ... Less is more :) I like it. Joshua D. Drake regards, tom lane ---(end of broadcast)-

Re: [HACKERS] Adding a --quiet option to initdb

2006-01-27 Thread Tom Lane
I wrote: >> While we can probably all agree that it's not very interesting to >> mention every single directory that initdb creates, I find it ... I took a quick look at the source and see that it would be trivial to reduce the current output from creating directory /home/postgres/v82/data ... ok

Re: [HACKERS] Adding a --quiet option to initdb

2006-01-27 Thread Alvaro Herrera
Tom Lane wrote: > Alvaro Herrera <[EMAIL PROTECTED]> writes: > > This warning was added because of security considerations AFAIR. If the > > intent is to make initdb super-quiet, we still have to have security in > > mind. So if you want it to not say anything by default, instead of > > throwing

Re: [HACKERS] Adding a --quiet option to initdb

2006-01-27 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > This warning was added because of security considerations AFAIR. If the > intent is to make initdb super-quiet, we still have to have security in > mind. So if you want it to not say anything by default, instead of > throwing a warning it should throw

Re: [HACKERS] Adding a --quiet option to initdb

2006-01-27 Thread Alvaro Herrera
Thomas Hallgren wrote: > Tom Lane wrote: > > > >>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. > >While we can probably all agree that

Re: [HACKERS] Adding a --quiet option to initdb

2006-01-27 Thread Thomas Hallgren
Tom Lane wrote: 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 int

Re: [HACKERS] Adding a --quiet option to initdb

2006-01-27 Thread Tom Lane
Thomas Hallgren <[EMAIL PROTECTED]> 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 info

Re: [HACKERS] Adding a --quiet option to initdb

2006-01-27 Thread Thomas Hallgren
Jim C. Nasby wrote: On Thu, Jan 26, 2006 at 11:36:15AM +0100, Peter Eisentraut wrote: James William Pye wrote: Why should initdb give it [processing information] to the user if the user didn't request it in the first place? Because it shows important information that we want the

Re: [HACKERS] Adding a --quiet option to initdb

2006-01-26 Thread Andrew Dunstan
Jim C. Nasby wrote: On Thu, Jan 26, 2006 at 11:36:15AM +0100, Peter Eisentraut wrote: James William Pye wrote: Why should initdb give it [processing information] to the user if the user didn't request it in the first place? Because it shows important information that we want

Re: [HACKERS] Adding a --quiet option to initdb

2006-01-26 Thread Jim C. Nasby
On Thu, Jan 26, 2006 at 11:36:15AM +0100, Peter Eisentraut wrote: > James William Pye wrote: > > Why should initdb give it [processing > > information] to the user if the user didn't request it in the first > > place? > > Because it shows important information that we want the user to see. Plus i

Re: [HACKERS] Adding a --quiet option to initdb

2006-01-26 Thread Peter Eisentraut
James William Pye wrote: > Why should initdb give it [processing > information] to the user if the user didn't request it in the first > place? Because it shows important information that we want the user to see. -- Peter Eisentraut http://developer.postgresql.org/~petere/ -

Re: [HACKERS] Adding a --quiet option to initdb

2006-01-25 Thread James William Pye
On Wed, 2006-01-25 at 19:23 +0100, Thomas Hallgren wrote: > Make it completely silent by > default instead and then introduce a --verbose. +1. I imagine initdb is usually ran interactively, so I don't think having the extra output is a big issue considering the normal case, but I think the "If

Re: [HACKERS] Adding a --quiet option to initdb

2006-01-25 Thread Peter Eisentraut
Devrim GUNDUZ wrote: > 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. This is merely an opinion. On what technical grounds would it be "better"? (I happen to agree with Greg's po

Re: [HACKERS] Adding a --quiet option to initdb

2006-01-25 Thread Thomas Hallgren
Devrim GUNDUZ wrote: Hi, On Wed, 2006-01-25 at 11:28 -0500, Tom Lane wrote: Devrim GUNDUZ <[EMAIL PROTECTED]> 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 ou

Re: [HACKERS] Adding a --quiet option to initdb

2006-01-25 Thread Devrim GUNDUZ
Hi, On Wed, 2006-01-25 at 11:28 -0500, Tom Lane wrote: > Devrim GUNDUZ <[EMAIL PROTECTED]> 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/nul

Re: [HACKERS] Adding a --quiet option to initdb

2006-01-25 Thread Tom Lane
Devrim GUNDUZ <[EMAIL PROTECTED]> writes: > Attached is a patch which adds --quiet and --q option to initdb. Why is this a good idea? regards, tom lane ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster