Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 1733564FD0B for ; Wed, 20 Aug 2008 18:02:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 72706-07 for ; Wed, 20 Aug 2008 18:02:09 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailout02.ims-firmen.de (mailout02.ims-firmen.de [213.174.32.97]) by postgresql.org (Postfix) with ESMTP id 075F564FCE6 for ; Wed, 20 Aug 2008 18:02:10 -0300 (ADT) Received: from mailin03.ims-firmen.de ([192.168.1.112]) by mailout02.ims-firmen.de with esmtp (Exim 4.69) (envelope-from ) id 1KVuoi-0003St-FC; Wed, 20 Aug 2008 23:02:08 +0200 Received: from [213.174.32.254] (helo=localhost) by mailin03.ims-firmen.de with esmtpa (Exim 4.69) (envelope-from ) id 1KVuoi-0006Yj-ES; Wed, 20 Aug 2008 23:02:08 +0200 Date: Wed, 20 Aug 2008 23:02:07 +0200 From: Thomas Jacob To: pgsql-admin@postgresql.org Cc: slamp slamp Subject: Re: pg_log directory Message-ID: <20080820210207.GA1945@internet24.de> References: <78926d250808201343x41e6840cma213c92572ec4268@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <78926d250808201343x41e6840cma213c92572ec4268@mail.gmail.com> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.156 tagged_above=0 required=5 tests=WHOIS_MYPRIVREG=0.156 X-Spam-Level: X-Archive-Number: 200808/94 X-Sequence-Number: 29939 pg_log isn't a standard postgres dir, so maybe it's where RHEL stores the actual textual log files that the server process generated. Indeed this is suggested here: http://www.nabble.com/-GENERAL--pg_log-missing-td7753209.html So if these files look something like: 2008-08-03 00:30:47 CEST LOG: statement: SELECT col1,col2 FROM table1; 2008-08-03 00:30:47 CEST LOG: statement: SELECT col FROM table2; they are just postgres log files, and the server has statement logging switched on, which is not such a good idea on a busy database. But if not they might be RHEL names for pg_xlog or pg_clog and deleting these would be an active attempt to destroy your database ;-) On Wed, Aug 20, 2008 at 04:43:06PM -0400, slamp slamp wrote: > Hi, I am new to this list sorry for asking such a lame question. I > tried searching but did not find the answer i was looking for. > > I am running postgresql-8.2.4 on rhel5. Do I need the files in pg_log? > When I look at one of the files, it shows INSERT, UPDATE and SELECT > statements. Reason I asked is because the folder is about 40GB. It is > half the size of my /var/lib/pgsql directory. > > -- > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-admin