Re: Monitoring Transaction Log size - Mailing list pgsql-performance

From Tom Lane
Subject Re: Monitoring Transaction Log size
Date
Msg-id 6235.1169073517@sss.pgh.pa.us
Whole thread Raw
In response to Re: Monitoring Transaction Log size  ("Joshua D. Drake" <jd@commandprompt.com>)
List pgsql-performance
"Joshua D. Drake" <jd@commandprompt.com> 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

pgsql-performance by date:

Previous
From: Kevin Hunter
Date:
Subject: DB benchmark and pg config file help
Next
From: Scott Marlowe
Date:
Subject: Re: Configuration Advice