Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id A40A79FB25A for ; Wed, 17 Jan 2007 18:39:02 -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 20899-10 for ; Wed, 17 Jan 2007 18:38:39 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 268F29FA4C1 for ; Wed, 17 Jan 2007 18:38:42 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l0HMcbHd006236; Wed, 17 Jan 2007 17:38:38 -0500 (EST) To: "Joshua D. Drake" cc: "Ziegelwanger, Silvio" , pgsql-performance@postgresql.org Subject: Re: Monitoring Transaction Log size In-reply-to: <45AE6376.7060606@commandprompt.com> References: <45AE6376.7060606@commandprompt.com> Comments: In-reply-to "Joshua D. Drake" message dated "Wed, 17 Jan 2007 09:57:10 -0800" Date: Wed, 17 Jan 2007 17:38:37 -0500 Message-ID: <6235.1169073517@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/286 X-Sequence-Number: 22887 "Joshua D. Drake" writes: > Ziegelwanger, Silvio wrote: >> how can I monitor the size of the transaction log files using SQL Statements? > You can't. You would have to write a custom function to heck the size of > the xlog directory. Perhaps more to the point, why do you think you need to? pg_xlog should stay pretty level at approximately 2*checkpoint_segments xlog files (once it's ramped up to that size, which might take a heavy burst of activity if checkpoint_segments is large). regards, tom lane