Why don't you install the latest PostgreSQL release and test that out?
-----------------------
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)
On 12/26/06, vinayakr@xxxxxxxxxxx
<vinayakr@xxxxxxxxxxx> wrote:
Hi,We are using PostgreSQL 7.3 version, installed in linux system. Only DB is getting shut down 3-4 times a day. From my application end I get "Sorry too many clients" error.
Refering the FAQ I maximized the DB session limit to 200.I think the logs are not enabled in my DB. So I set the following options in postgresql.con file
log_timestamp= true
log_directory=pg_log
log_filename=%Y-%m-%d_%H%M%S.log
log_disconnections=true
log_hostname=truelog_statement=trueAfter restarting the system got the following error :[root@localhost root]# su postgres bash-2.05b$ postmaster -i -D /var/lib/pgsql/data FATAL: postgresql.conf:131: syntax error,
token="%" bash-2.05b$ postmaster -i -D /var/lib/pgsql/data FATAL: postgresql.conf:131: syntax error, token="%" bash-2.05b$ postmaster -i -D /var/lib/pgsql/data FATAL: postgresql.conf:131: syntax error, token="%" bash-2.05b$ postmaster -i -D /var/lib/pgsql/data FATAL: 'log_directory' is not a valid option name bash-2.05b$ postmaster -i -D /var/lib/pgsql/data FATAL: 'log_directory' is not a valid option name bash-2.05b$ postmaster -i -D /var/lib/pgsql/data FATAL: 'log_filename' is not a valid option name bash-2.05b$ postmaster -i -D /var/lib/pgsql/data FATAL: 'log_disconnections' is not a valid option name bash-2.05b$ postmaster -i -D /var/lib/pg
When you install the DB, the logs are enabled by default?Would you pls tell me still what setting need to be done?Thanks,
Vinayak V. Raikar
Extn : 143