pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedDB problem
6+ messages / 5 participants
[nested] [flat]
* DB problem
@ 2006-12-26 05:35 vinayakr@vmoksha.com
2006-12-26 08:31 ` Re: DB problem Shoaib Mir <shoaibmir@gmail.com>
2006-12-26 14:00 ` Re: DB problem Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
2006-12-26 14:23 ` Re: [ADMIN] DB problem Andy Shellam (Mailing Lists) <andy.shellam-lists@mailnetwork.co.uk>
0 siblings, 3 replies; 6+ messages in thread
From: vinayakr@vmoksha.com @ 2006-12-26 05:35 UTC (permalink / raw)
To: pgsql-admin
<FONT face="Default Sans Serif, Verdana, Arial, Helvetica, sans-serif" size=2><DIV><DIV><FONT face="Default Sans Serif, Verdana, Arial, Helvetica, sans-serif" size=2><DIV>Hi,</DIV><DIV> </DIV><DIV>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. <BR>Refering the FAQ I maximized the DB session limit to 200. </DIV><DIV> </DIV><DIV>I think the logs are not enabled in my DB. So I set the following options in postgresql.con file<BR> <BR>log_timestamp= true<BR>log_directory=pg_log <BR>log_filename=%Y-%m-%d_%H%M%S.log <BR>log_disconnections=true <BR>log_hostname=true </DIV><DIV>log_statement=true</DIV><DIV> </DIV><DIV> </DIV><DIV>After restarting the system got the following error : </DIV><DIV>[root@localhost root]# su postgres bash-2.05b$ postmaster -i -D /var/lib/pgsql/data FATAL: postgresql.conf:131: syntax error, <BR>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</DIV><DIV><BR>When you install the DB, the logs are enabled by default?</DIV><DIV> </DIV><DIV>Would you pls tell me still what setting need to be done?</DIV><DIV> </DIV><DIV>Thanks,<BR>Vinayak V. Raikar<BR>Extn : 143<BR><BR></DIV></FONT></DIV></DIV></FONT>
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: DB problem
2006-12-26 05:35 DB problem vinayakr@vmoksha.com
@ 2006-12-26 08:31 ` Shoaib Mir <shoaibmir@gmail.com>
2 siblings, 0 replies; 6+ messages in thread
From: Shoaib Mir @ 2006-12-26 08:31 UTC (permalink / raw)
To: vinayakr@vmoksha.com <vinayakr@vmoksha.com>; +Cc: pgsql-admin
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
>
>
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: DB problem
2006-12-26 05:35 DB problem vinayakr@vmoksha.com
@ 2006-12-26 14:00 ` Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
2 siblings, 0 replies; 6+ messages in thread
From: Rajesh Kumar Mallah @ 2006-12-26 14:00 UTC (permalink / raw)
To: vinayakr@vmoksha.com <vinayakr@vmoksha.com>; +Cc: pgsql-admin
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.
>
Vinay,
Although its not an answer to your question, but you should upgrade to
8.2.0version
unless you have specific reason of not doing it.
Regds
mallah.
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: [ADMIN] DB problem
2006-12-26 05:35 DB problem vinayakr@vmoksha.com
@ 2006-12-26 14:23 ` Andy Shellam (Mailing Lists) <andy.shellam-lists@mailnetwork.co.uk>
2 siblings, 0 replies; 6+ messages in thread
From: Andy Shellam (Mailing Lists) @ 2006-12-26 14:23 UTC (permalink / raw)
To: vinayakr@vmoksha.com; +Cc: pgsql-admin; pgadmin-support@postgresql.org
Vinayak,
Please don't post twice to two different lists (four of the same posts
to both pgsql-admin and pgadmin-support.)
This clearly isn't a problem with PG Admin - so don't clutter that list
up, and don't multiple-post - it won't change anything posting twice,
and if anything you'll only end up annoying people so they won't feel
obliged to help you anyway.
In answer to your question, it took me 3 minutes to find this manual page:
http://www.postgresql.org/docs/7.3/static/runtime-config.html
There is no log_directory setting, but it is in 8.x
(http://www.postgresql.org/docs/8.0/static/runtime-config.html), so your
version doesn't support it.
It would be helpful if you consult the manual for your running version,
not the current release, as features inevitably get added and others
change. And, as someone's already said, you should be thinking of
upgrading to at minimum 8.1.
Andy.
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
>
> !DSPAM:37,4590b56931941914011633!
--
Andy Shellam
NetServe Support Team
the Mail Network
"an alternative in a standardised world"
p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834
^ permalink raw reply [nested|flat] 6+ messages in thread
* DB problem
@ 2006-12-26 05:49 vinayakr@vmoksha.com
2006-12-26 09:42 ` Re: DB problem Harald Armin Massa <haraldarminmassa@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: vinayakr@vmoksha.com @ 2006-12-26 05:49 UTC (permalink / raw)
To: pgadmin-support@postgresql.org; +Cc: pgsql-admin
<FONT face="Default Sans Serif, Verdana, Arial, Helvetica, sans-serif" size=2><DIV><BR><DIV><FONT face="Default Sans Serif, Verdana, Arial, Helvetica, sans-serif" size=2><DIV><DIV><FONT face="Default Sans Serif, Verdana, Arial, Helvetica, sans-serif" size=2><DIV>Hi,</DIV><DIV> </DIV><DIV>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. <BR>Refering the FAQ I maximized the DB session limit to 200. </DIV><DIV> </DIV><DIV>I think the logs are not enabled in my DB. So I set the following options in postgresql.con file<BR> <BR>log_timestamp= true<BR>log_directory=pg_log <BR>log_filename=%Y-%m-%d_%H%M%S.log <BR>log_disconnections=true <BR>log_hostname=true </DIV><DIV>log_statement=true</DIV><DIV> </DIV><DIV> </DIV><DIV>After restarting the system got the following error : </DIV><DIV>[root@localhost root]# su postgres bash-2.05b$ postmaster -i -D /var/lib/pgsql/data FATAL: postgresql.conf:131: syntax error, <BR>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</DIV><DIV><BR>When you install the DB, the logs are enabled by default?</DIV><DIV> </DIV><DIV>Would you pls tell me still what setting need to be done?</DIV><DIV> </DIV><DIV>Thanks,<BR>Vinayak V. Raikar<BR>Extn : 143<BR><BR></DIV></FONT></DIV></DIV></FONT></DIV></DIV></FONT>
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: DB problem
2006-12-26 05:49 DB problem vinayakr@vmoksha.com
@ 2006-12-26 09:42 ` Harald Armin Massa <haraldarminmassa@gmail.com>
0 siblings, 0 replies; 6+ messages in thread
From: Harald Armin Massa @ 2006-12-26 09:42 UTC (permalink / raw)
To: vinayakr@vmoksha.com <vinayakr@vmoksha.com>; +Cc: pgadmin-support@postgresql.org; pgsql-admin
Vinayakr,
> 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.
Maybe you should rise the maximum connections?
> 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
Your error clearly states that PostgreSQL cannot accept your postgresql.conf
>FATAL: 'log_directory' is > not a valid option name bash-2.05b$
postmaster -i -D /var/lib/pgsql/data
strange ... within my config there is
# These are only used if redirect_stderr is on:
log_directory = 'pg_log' # Directory where log files are written
# Can be absolute or relative to PGDATA
log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # Log file name pattern.
# Can include strftime() escapes
What I see that is missing within yours are the ' around the option values.
> When you install the DB, the logs are enabled by default?
That belongs to the packager. If he is reasonable sane, they will be enabled.
Best wishes,
Harald
--
GHUM Harald Massa
persuadere et programmare
Harald Armin Massa
Reinsburgstraße 202b
70197 Stuttgart
0173/9409607
-
Python: the only language with more web frameworks than keywords.
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2006-12-26 14:23 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-12-26 05:35 DB problem vinayakr@vmoksha.com
2006-12-26 08:31 ` Shoaib Mir <shoaibmir@gmail.com>
2006-12-26 14:00 ` Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
2006-12-26 14:23 ` Andy Shellam (Mailing Lists) <andy.shellam-lists@mailnetwork.co.uk>
2006-12-26 05:49 DB problem vinayakr@vmoksha.com
2006-12-26 09:42 ` Harald Armin Massa <haraldarminmassa@gmail.com>
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