X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id C896BDCA91 for ; Fri, 11 Jul 2003 06:28:23 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 28518-06 for ; Fri, 11 Jul 2003 03:28:09 -0300 (ADT) Received: from martin.sysdetect.com (martin.sysdetect.com [65.209.102.1]) by svr1.postgresql.org (Postfix) with ESMTP id AB1F2CC753 for ; Thu, 10 Jul 2003 15:19:19 -0300 (ADT) Received: (from mail@localhost) by martin.sysdetect.com (8.11.4/8.11.3) id h6AIJY600701 for ; Thu, 10 Jul 2003 18:19:34 GMT Received: from winwood.sysdetect.com(172.16.1.1) via SMTP by mail.sysdetect.com, id smtpdtJ2556; Thu Jul 10 18:19:26 2003 Received: from sysd.com (thriller.sysdetect.com [172.16.1.33]) by winwood.sysdetect.com (8.11.6/8.11.6) with ESMTP id h6AIJQ913911 for ; Thu, 10 Jul 2003 14:19:26 -0400 Message-ID: <3F0DAE2E.3020102@sysd.com> Date: Thu, 10 Jul 2003 14:19:26 -0400 From: Rich Cullingford User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: pre-Vacuum statistics Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/171 X-Sequence-Number: 2464 Greetings, All the recommendations I can locate concerning the use of (the various flavors of) VACUUM suggest running it at regular intervals. Is there any way, for a given table, to discover how many/what percentage of rows are likely to be VACUUMable at a given point, so that some kind of threshold-based VACUUM could be done by an application? We have several tables that undergo bursty UPDATEs, where large numbers of transactions occur "relatively" infrequently; and others where the UPDATEs occur at regular intervals (a few seconds or so). Thanks for any advice! Regards, Rich Cullingford rculling@sysd.com