pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dennis Wang <dennis_02_2002@hotmail.com>
To: Postgresql Help <pgsql-interfaces@postgresql.org>
Subject: pg_subtrans directory grows over 1 GB, is there a way to control it?
Date: Fri, 16 May 2008 19:28:15 +1030
Message-ID: <BAY137-W50DCFFB333D7318AD4F557D6C80@phx.gbl> (raw)


I am using PostgreSQL database in a location recognition application, the files under postgresql/cluster is growing and over a few days it become very large as below. 
    /var/opt/postgresql/cluster/data  166015 Kilobytes  (the actual database data)
    /var/opt/postgresql/cluster/sys/pg_clog 74188 Kilobytes  (transaction commit status data)
    /var/opt/postgresql/cluster/sys/pg_subtrans   1187032 Kilobytes (transaction status data)

The pg_clog and pg_subtrans can grow when database contains more data and more queries come in. But these figures looks rather large to me because the queries goes in the database are mainly read operation rather than write one. I got a few question to ask here:
     Is there a way to control the size of pg_clog and pg_subtrans? 
     Is the file size still be normal for the database of this size (166MB for cluster/data)?
     Does the larger pg_subtrans indicate some bad transaction happens in the database?

You expertise is very appreciated.

Thanks

Dennis



_________________________________________________________________
Are you paid what you're worth? Find out: SEEK Salary Centre
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau%2Fcareer%2Dresources%2Fsal...

view thread (4+ messages)  latest in thread

Message-ID: <BAY137-W50DCFFB333D7318AD4F557D6C80@phx.gbl>
Permalink:  ../BAY137-W50DCFFB333D7318AD4F557D6C80@phx.gbl/
Also on:    postgresql.org/message-id/BAY137-W50DCFFB333D7318AD4F557D6C80@phx.gbl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: dennis_02_2002@hotmail.com
  Subject: Re: pg_subtrans directory grows over 1 GB, is there a way to control it?
  In-Reply-To: <BAY137-W50DCFFB333D7318AD4F557D6C80@phx.gbl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox