pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shoaib Mir <shoaibmir@gmail.com>
To: vinayakr@vmoksha.com <vinayakr@vmoksha.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: DB problem
Date: Tue, 26 Dec 2006 13:31:33 +0500
Message-ID: <bf54be870612260031o3272ae1r94b19cb7ddf1878@mail.gmail.com> (raw)
In-Reply-To: <OFD7F9FD59.C639B87D-ON65257250.001EAEBB-65257250.001EAEBE@vmoksha.com>
References: <OFD7F9FD59.C639B87D-ON65257250.001EAEBB-65257250.001EAEBE@vmoksha.com>

I am not sure if these option were supported with 7.3 (never used it) for
logging but that does go good with 8.1 and onwards...

Why don't you install the latest PostgreSQL release and test that out?

-----------------------
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)

On 12/26/06, vinayakr@vmoksha.com <vinayakr@vmoksha.com> 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=true
> log_statement=true
>
>
> After 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
>
>

view thread (6+ messages)  latest in thread

Message-ID: <bf54be870612260031o3272ae1r94b19cb7ddf1878@mail.gmail.com>
Permalink:  ../bf54be870612260031o3272ae1r94b19cb7ddf1878@mail.gmail.com/
Also on:    postgresql.org/message-id/bf54be870612260031o3272ae1r94b19cb7ddf1878@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: shoaibmir@gmail.com, vinayakr@vmoksha.com
  Subject: Re: DB problem
  In-Reply-To: <bf54be870612260031o3272ae1r94b19cb7ddf1878@mail.gmail.com>
  References: <OFD7F9FD59.C639B87D-ON65257250.001EAEBB-65257250.001EAEBE@vmoksha.com> <bf54be870612260031o3272ae1r94b19cb7ddf1878@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox