Обсуждение: logfile

Поиск
Список
Период
Сортировка

logfile

От
"H.J. Sanders"
Дата:
I assume I do not understand the manual right (or my kind of english).
 
In PGSQL 7.4 I only want error situations in the logfile, and if an error occurs as much as possible information like e.g. the sql statement.
 
I entered in postgresql.conf:
 
client_min_messages = error
log_min_messages = error
log_error_verbosity = terse
log_min_error_statement = error
 
log_statement = true
log_timestamp = true
 
but now all sql statements are always logged.
 
What did I do wrong? Can someone give the proper settings?
 
Many thanks
 
Henk Sanders
 
 

Re: logfile

От
"Jim C. Nasby"
Дата:
On Tue, Jun 06, 2006 at 02:37:11PM +0200, H.J. Sanders wrote:
> I assume I do not understand the manual right (or my kind of english).
>
> In PGSQL 7.4 I only want error situations in the logfile, and if an error
> occurs as much as possible information like e.g. the sql statement.
>
> I entered in postgresql.conf:
>
> client_min_messages = error
> log_min_messages = error
> log_error_verbosity = terse
> log_min_error_statement = error
>
> log_statement = true
> log_timestamp = true
>
> but now all sql statements are always logged.
>
> What did I do wrong? Can someone give the proper settings?

log_statement = false. See docs for log_min_error_statement.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461