Thread: -s does not work

-s does not work

From
Paul Gaspar
Date:
Hi all,

I want to get rid of all those messages like "database system is ready to accept connections" in the log file. -s is
theappropiate command in pg_ctl, I thought, but I still get those messages. 

This is the command line to start pg:

/.../pg_ctl start -s -U ... -l /.../Log.txt -o "-p 1234" -D /.../Database

Is there something wrong?

Thanks a lot for your help.

Paul

Re: -s does not work

From
Adrian Klaver
Date:
On 03/30/2011 09:02 AM, Paul Gaspar wrote:
> Hi all,
>
> I want to get rid of all those messages like "database system is ready to accept connections" in the log file. -s is
theappropiate command in pg_ctl, I thought, but I still get those messages. 
>
> This is the command line to start pg:
>
> /.../pg_ctl start -s -U ... -l /.../Log.txt -o "-p 1234" -D /.../Database
>
> Is there something wrong?

I believe this only suppresses messages output to the screen. To control
the log messages take a look at:

http://www.postgresql.org/docs/9.0/interactive/runtime-config-logging.html

>
> Thanks a lot for your help.
>
> Paul


--
Adrian Klaver
adrian.klaver@gmail.com

Re: -s does not work

From
Guillaume Lelarge
Date:
Le 30/03/2011 18:02, Paul Gaspar a écrit :
> [...]
> I want to get rid of all those messages like "database system is ready to accept connections" in the log file. -s is
theappropiate command in pg_ctl, I thought, but I still get those messages. 
>
> This is the command line to start pg:
>
> /.../pg_ctl start -s -U ... -l /.../Log.txt -o "-p 1234" -D /.../Database
>
> Is there something wrong?
>

-s allows the user to control the verbosity of pg_ctl, not the one of
the PostgreSQL server.


--
Guillaume
 http://www.postgresql.fr
 http://dalibo.com