X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C8E0552C25 for ; Thu, 14 Jul 2005 02:08:43 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 71721-09 for ; Thu, 14 Jul 2005 05:08:34 +0000 (GMT) Received: from ash25e.internode.on.net (ash25e.internode.on.net [203.16.214.182]) by svr1.postgresql.org (Postfix) with ESMTP id 75E3052BCA for ; Thu, 14 Jul 2005 02:08:32 -0300 (ADT) Received: from pluto.mirrabooka.com (ppp188-133.static.internode.on.net [150.101.188.133]) by ash25e.internode.on.net (8.12.9/8.12.6) with ESMTP id j6E58ULj089210 for ; Thu, 14 Jul 2005 14:38:31 +0930 (CST) (envelope-from alison@mirrabooka.com) Received: by pluto.mirrabooka.com (Postfix, from userid 506) id 6A4A92B11E; Thu, 14 Jul 2005 15:08:30 +1000 (EST) Date: Thu, 14 Jul 2005 15:08:30 +1000 To: pgsql-performance@postgresql.org Subject: lots of updates on small table Message-ID: <42D5F34E.nail9QE1195IE@pluto.mirrabooka.com> User-Agent: nail 11.6 9/7/04 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: alison@mirrabooka.com (Alison Winters) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200507/161 X-Sequence-Number: 13402 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