From yogvinder@newgen.co.in Tue Sep 13 06:46:29 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E5CF2D7E26 for ; Tue, 13 Sep 2005 03:46:29 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 64035-10 for ; Tue, 13 Sep 2005 06:46:11 +0000 (GMT) Received: from newgen.co.in (mx.newgen.co.in [202.131.146.227]) by svr1.postgresql.org (Postfix) with SMTP id 98884D84A3 for ; Tue, 13 Sep 2005 03:46:06 -0300 (ADT) Received: (qmail 20561 invoked by uid 507); 13 Sep 2005 06:46:05 -0000 Received: from 202.140.41.205 by mx.newgen.co.in (envelope-from , uid 501) with qmail-scanner-1.25 (fireav: ???. spamassassin: 3.0.3. Clear:RC:0(202.140.41.205):SA:0(-99.4/5.0):. Processed in 4.107054 secs); 13 Sep 2005 06:46:05 -0000 Received: from unknown (HELO ngmail.newgen.co.in) (okhlaoffice@202.140.41.205) by mx.newgen.co.in with SMTP; 13 Sep 2005 06:46:01 -0000 Received: (qmail 5416 invoked by uid 504); 13 Sep 2005 06:52:24 -0000 Received: from yogvinder@newgen.co.in by ngmail.newgen.co.in by uid 501 with qmail-scanner-1.21 (fireav: ???. Clear:RC:1(192.168.5.86):. Processed in 3.031863 secs); 13 Sep 2005 06:52:24 -0000 Received: from unknown (HELO ng3054) (192.168.5.86) by 192.168.5.243 with SMTP; 13 Sep 2005 06:52:21 -0000 Message-ID: <011101c5b82e$bde82040$5605a8c0@ng3054> From: "Yogvinder Singh" To: Subject: Log file Query Date: Tue, 13 Sep 2005 12:15:21 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_010E_01C5B85C.CFAB76F0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new at hub.org X-Amavis-Alert: BAD HEADER MIME error: error: part did not end with expected boundary X-Spam-Status: No, hits=1.108 required=5 tests=[AWL=0.836, HTML_MESSAGE=0.001, MIME_MISSING_BOUNDARY=0.247, RCVD_BY_IP=0.024] X-Spam-Level: * X-Archive-Number: 200509/123 X-Sequence-Number: 18860 This is a multi-part message in MIME format. ------=_NextPart_000_010E_01C5B85C.CFAB76F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi ppl, I am using postgres7.3 version. I am unable to find any log. = all the files=20 1) /usr/local/pgsql/data/serverlog 2) /var/log/pgsql etc are empty pg_xlog and pg_clog directory files dont seem to be = meaningful. i tried=20 log_connections =3D true log_pid =3D true log_statement =3D true log_duration =3D true log_timestamp =3D true log_min_error_statement =3D debug5 but where this log_statement log will go... Moreover where databaseserver log is made=20 i m starting postgres as: service postgresql start i mean when database server is improperly shutdown or some other error = condition etc must be logged somewhere is it in the serverlog file.?? Moreover i want to log all the steps that postmaster makes at startup... can anyone help me on this=20 =20 ------=_NextPart_000_010E_01C5B85C.CFAB76F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi ppl,
       =20     I am using postgres7.3 version. I am unable to find any log.
       =20     all the files 
          &nbs= p; 1)=20 /usr/local/pgsql/data/serverlog
       =20     2) /var/log/pgsql
       =20     etc are empty
          &nbs= p;=20 pg_xlog and pg_clog directory files dont seem to be = meaningful.
 
i tried
log_connections =3D true
log_pid =3D = true
log_statement =3D true
log_duration =3D true
log_timestamp = =3D=20 true
log_min_error_statement =3D = debug5
 
 
but where this log_statement log will=20 go...
 
Moreover where databaseserver log = is made=20
i m starting postgres as:
service postgresql start
 
i mean when database server is = improperly shutdown=20 or some other error condition etc must be logged somewhere
is it in the serverlog = file.??
Moreover i want to log all the steps = that=20 postmaster makes at startup...
 
 
can anyone help me on this =
 
 
 
 
 
 

 
 
 
 
 
 
 
       =20    
 
 
       =20    
------=_NextPart_000_010E_01C5B85C.CFAB76F0-- From yogvinder@newgen.co.in Tue Sep 13 09:23:00 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id ED572D7046 for ; Tue, 13 Sep 2005 06:23:00 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 05130-02 for ; Tue, 13 Sep 2005 09:22:54 +0000 (GMT) Received: from newgen.co.in (mx.newgen.co.in [202.131.146.227]) by svr1.postgresql.org (Postfix) with SMTP id 8277DD6D85 for ; Tue, 13 Sep 2005 06:22:53 -0300 (ADT) Received: (qmail 21539 invoked by uid 507); 13 Sep 2005 09:22:55 -0000 Received: from 202.140.41.205 by mx.newgen.co.in (envelope-from , uid 501) with qmail-scanner-1.25 (fireav: ???. spamassassin: 3.0.3. Clear:RC:0(202.140.41.205):SA:0(-99.4/5.0):. Processed in 2.331359 secs); 13 Sep 2005 09:22:55 -0000 Received: from unknown (HELO ngmail.newgen.co.in) (okhlaoffice@202.140.41.205) by mx.newgen.co.in with SMTP; 13 Sep 2005 09:22:52 -0000 Received: (qmail 17163 invoked by uid 504); 13 Sep 2005 09:28:39 -0000 Received: from yogvinder@newgen.co.in by ngmail.newgen.co.in by uid 501 with qmail-scanner-1.21 (fireav: ???. Clear:RC:1(192.168.5.86):. Processed in 2.379069 secs); 13 Sep 2005 09:28:39 -0000 Received: from unknown (HELO ng3054) (192.168.5.86) by 192.168.5.243 with SMTP; 13 Sep 2005 09:28:36 -0000 Message-ID: <012f01c5b844$91e3f5d0$5605a8c0@ng3054> From: "Yogvinder Singh" To: Subject: Log file Query Date: Tue, 13 Sep 2005 14:51:48 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_012C_01C5B872.AB2B2080" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new at hub.org X-Amavis-Alert: BAD HEADER MIME error: error: part did not end with expected boundary X-Spam-Status: No, hits=1.175 required=5 tests=[AWL=0.529, DNS_FROM_RFC_ABUSE=0.374, HTML_MESSAGE=0.001, MIME_MISSING_BOUNDARY=0.247, RCVD_BY_IP=0.024] X-Spam-Level: * X-Archive-Number: 200509/128 X-Sequence-Number: 18865 This is a multi-part message in MIME format. ------=_NextPart_000_012C_01C5B872.AB2B2080 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable well there is nothing in the /var/log or /var/lib/pgsql/data any explanation or how can i enable logging=20 i am using postgres7.3 on whitebox linux 4 ------=_NextPart_000_012C_01C5B872.AB2B2080 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
well there is nothing in the = /var/log
or /var/lib/pgsql/data
 
any explanation
or how can i enable logging =
 
i am using postgres7.3 on whitebox = linux=20 4
------=_NextPart_000_012C_01C5B872.AB2B2080-- From tgl@sss.pgh.pa.us Tue Sep 13 15:10:32 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4553AD7B40 for ; Tue, 13 Sep 2005 12:10:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 84974-06 for ; Tue, 13 Sep 2005 15:10:28 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 97D9DD6D9D for ; Tue, 13 Sep 2005 12:10:26 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j8DFA7Ce023287; Tue, 13 Sep 2005 11:10:08 -0400 (EDT) To: "Yogvinder Singh" Cc: pgsql-admin@postgresql.org Subject: Re: Log file Query In-reply-to: <011101c5b82e$bde82040$5605a8c0@ng3054> References: <011101c5b82e$bde82040$5605a8c0@ng3054> Comments: In-reply-to "Yogvinder Singh" message dated "Tue, 13 Sep 2005 12:15:21 +0530" Date: Tue, 13 Sep 2005 11:10:07 -0400 Message-ID: <23286.1126624207@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200509/137 X-Sequence-Number: 18874 "Yogvinder Singh" writes: > I am using postgres7.3 version. I am unable to find any log. = In 7.3 your best bet is to log via syslog. Set syslog to 2 in postgresql.conf and adjust the other settings if needed, then make sure your syslog daemon is configured to put the messages where you want them. What is probably happening right now is that the postmaster is set to send log messages to stderr but the start script you are using is redirecting postmaster stderr to /dev/null. While you could modify the start script, I don't recommend it for production purposes because 7.3 doesn't have any support for rotating log files that way. syslog is the only production-grade logging approach in that version. regards, tom lane