pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: alison@mirrabooka.com
To: pgsql-performance@postgresql.org
Subject: lots of updates on small table
Date: Thu, 14 Jul 2005 15:08:30 +1000
Message-ID: <42D5F34E.nail9QE1195IE@pluto.mirrabooka.com> (raw)

Hi,

Our application requires a number of processes to select and update rows
from a very small (<10 rows) Postgres table on a regular and frequent
basis.  These processes often run for weeks at a time, but over the
space of a few days we find that updates start getting painfully slow.
We are running a full vacuum/analyze and reindex on the table every day,
but the updates keep getting slower and slower until the processes are
restarted.  Restarting the processes isn't really a viable option in our
24/7 production environment, so we're trying to figure out what's
causing the slow updates.

The environment is as follows:

Red Hat 9, kernel 2.4.20-8
PostgreSQL 7.3.2
ecpg 2.10.0

The processes are all compiled C programs accessing the database using
ECPG.

Does anyone have any thoughts on what might be happening here?

Thanks
Alison




view thread (10+ messages)  latest in thread

Message-ID: <42D5F34E.nail9QE1195IE@pluto.mirrabooka.com>
Permalink:  ../42D5F34E.nail9QE1195IE@pluto.mirrabooka.com/
Also on:    postgresql.org/message-id/42D5F34E.nail9QE1195IE@pluto.mirrabooka.com

 · 

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-performance@postgresql.org
  Cc: alison@mirrabooka.com
  Subject: Re: lots of updates on small table
  In-Reply-To: <42D5F34E.nail9QE1195IE@pluto.mirrabooka.com>

* 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