X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6040A475425 for ; Sun, 2 Feb 2003 09:46:34 -0500 (EST) Received: from post.webmailer.de (natsmtp00.webmailer.de [192.67.198.74]) by postgresql.org (Postfix) with ESMTP id 547774753A1 for ; Sun, 2 Feb 2003 09:46:33 -0500 (EST) Received: from dell (p509178E5.dip.t-dialin.net [80.145.120.229]) by post.webmailer.de (8.9.3/8.8.7) with ESMTP id PAA27247; Sun, 2 Feb 2003 15:46:05 +0100 (MET) Content-Type: text/plain; charset="iso-8859-1" From: Tilo Schwarz To: Bruce Momjian , pgsql-admin@postgresql.org Subject: Re: Postgres server output log Date: Sun, 2 Feb 2003 15:47:30 +0100 User-Agent: KMail/1.4.3 References: <200302020954.h129sRe17404@candle.pha.pa.us> In-Reply-To: <200302020954.h129sRe17404@candle.pha.pa.us> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200302021547.30797.mail@tilo-schwarz.de> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/26 X-Sequence-Number: 7224 Bruce Momjian writes: > Is all this stuff in our docs? At least I didn't find it, while I was searching for "how to logrotate the= =20 postmaster logfile properly" last week (IIRC only the "pipe postmasters=20 output into a logrotate script" possibility is discussed, not the way like = 2)=20 below). Finally I had a look how SuSE does it and it's very similar to 2)= =20 shown below (but they have the "copytruncate" option). Best regards, Tilo > > -------------------------------------------------------------------------= -- > > Rajesh Kumar Mallah. wrote: > > This is someones' elses' posting that i have preserved > > shud be useful. > > > > regds > > mallah. > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~` > > > > Well, > > the most correct way to do a logrotate is ( Redhat ): > > > > 1) Put on your postgresql.conf the following lines: > > > > syslog =3D 2 > > syslog_facility =3D 'LOCAL0' > > syslog_ident =3D 'postgres' > > > > 2) Put on the directory /etc/logrotate.d a file called > > 'postgres' with the following lines: > > > > /var/log/postgresql.log { > > compress > > rotate 2 > > size=3D10000k > > errors mendola@bigfoot.com > > create 0664 postgres postgres > > daily > > postrotate > > /usr/bin/killall -HUP syslogd > > endscript > > } > > > > change the email address of course :-) > > > > 3) Put the following line on your /etc/syslog.conf > > > > # Save postgresql logs > > LOCAL0.* > > /var/log/postgresql.log > > > > > > Ciao > > Gaetano > > > > ------------------------------------------------------- > > > > On Thursday 30 January 2003 10:21 am, Mintoo Lall wrote: > > > Hi Everybody, > > > > > > I am new to postgresql. I started my postgres using the command > > > > > > postmaster -D /usr/local/pgsql/data > logfile 2>&1 & > > > > > > Now after running it for some time I noticed that the size of this > > > logfile has become very large. Is this logfile used to store any > > > important information used by the database for recovery in case of > > > crash? If no,is there any way I can specify a different log file > > > withouting stopping the server ? > > > > > > Any help is appreciated. > > > > > > Thanks, > > > > > > Tarun > > > > > > > > > > > > --------------------------------- > > > Do you Yahoo!? > > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > > > -- > > > > > > -------------------------------------------- > > Regds Mallah > > Rajesh Kumar Mallah, > > Project Manager (Development) > > Infocom Network Limited, New Delhi > > phone: +91(11)26152172 (221) (L) 9811255597 (M) > > Visit http://www.trade-india.com , > > India's Leading B2B eMarketplace. > > > > > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org