Re: logging settings

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mott Leroy <mott(at)acadaca(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: logging settings
Date: 2006-02-03 05:13:15
Message-ID: 22992.1138943595@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mott Leroy <mott(at)acadaca(dot)com> writes:
> I turned on statement logging (and duration), issued a "pg_ctl reload"
> and got it working (logging to sys log and standard out). Now however,
> when i try to turn it off, it won't turn off, using the same procedure.
> I've now commented out all the lines related to logging, but it's still
> logging.

I think you're getting bit by a standard beginner gotcha: commenting out
an entry in postgresql.conf will not change the state of a running
postmaster. (A comment is a no-op, eh?) You need to put in a
non-comment entry that sets the desired state.

There's been various discussions in the past about making this behavior
less non-intuitive, but nothing's been settled on ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Leonard Soetedjo 2006-02-03 05:19:47 Re: PostgreSQL best practices?
Previous Message Bruce Momjian 2006-02-03 05:02:53 Re: PostgreSQL best practices?