Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 881749FA217 for ; Tue, 26 Dec 2006 04:31:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 98164-08 for ; Tue, 26 Dec 2006 04:31:27 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.236]) by postgresql.org (Postfix) with ESMTP id 63AA99F9B05 for ; Tue, 26 Dec 2006 04:31:35 -0400 (AST) Received: by nz-out-0506.google.com with SMTP id i11so1620074nzh for ; Tue, 26 Dec 2006 00:31:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=p0PuIc5YuJbm7CuymU46RON8a8QsUwPnIi1NPDwShHGtqiujou83nz1mb5bNyk0kFLVr1qElnYifhes3fdKZbkWXrIg/H83buOjIBzN3TQfqFH6GiObrQrISOzRHOdYv4bnYytvw88tkrWARSZ90mVIqLa2BtCgLXLI/rsPOyVA= Received: by 10.65.236.18 with SMTP id n18mr1692619qbr.1167121894374; Tue, 26 Dec 2006 00:31:34 -0800 (PST) Received: by 10.65.206.17 with HTTP; Tue, 26 Dec 2006 00:31:33 -0800 (PST) Message-ID: Date: Tue, 26 Dec 2006 13:31:33 +0500 From: "Shoaib Mir" To: "vinayakr@vmoksha.com" Subject: Re: DB problem Cc: pgsql-admin@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_55611_16536318.1167121893963" References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/321 X-Sequence-Number: 24113 ------=_Part_55611_16536318.1167121893963 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 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 > > ------=_Part_55611_16536318.1167121893963 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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


------=_Part_55611_16536318.1167121893963--