Re: DB problem - Mailing list pgsql-general

From Filip Rembiałkowski
Subject Re: DB problem
Date
Msg-id 92869e660612260546i273a8d4cva43320e1d4bdc3a2@mail.gmail.com
Whole thread Raw
In response to DB problem  (vinayakr@vmoksha.com)
List pgsql-general
2006/12/26, vinayakr@vmoksha.com <vinayakr@vmoksha.com>:

> I think the logs are not enabled in my DB. So I set the following options in
> postgresql.con file

you are using some options which came with later postgresql releases.

> log_timestamp= true
ok
> log_directory=pg_log
wrong (available from 8.0)
> log_filename=%Y-%m-%d_%H%M%S.log
wrong (available from 8.0)
> log_disconnections=true
wrong (available from 8.0)
> log_hostname=true
wrong (available from 7.4)
> log_statement=true
OK

you can review all runtime options for 7.3 here:
http://www.postgresql.org/docs/7.3/static/runtime-config.html


> When you install the DB, the logs are enabled by default?
> Would you pls tell me still what setting need to be done?

for 7.3, the default was to log to standard output.
so you will have to redirect it, either to syslog (by setting syslog =
1), or to a file using shell redirection, or with pg_ctl option.
see http://www.postgresql.org/docs/7.3/static/app-pg-ctl.html


F.

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: convert(... using windows_1251_to_utf8) - works on cli, but not in a c prog.
Next
From: "Angva"
Date:
Subject: Re: out of memory woes