X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D17F5D1B432 for ; Sun, 4 Jan 2004 22:57:58 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 41323-07 for ; Sun, 4 Jan 2004 18:57:12 -0400 (AST) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by svr1.postgresql.org (Postfix) with ESMTP id 61DA6D1B44C for ; Sun, 4 Jan 2004 18:57:09 -0400 (AST) Received: from [10.0.1.3] (h000393e3ce55.ne.client2.attbi.com[24.91.235.158]) by comcast.net (sccrmhc13) with SMTP id <2004010422571101600a8odje>; Sun, 4 Jan 2004 22:57:11 +0000 User-Agent: Microsoft-Entourage/10.1.1.2418 Date: Sun, 04 Jan 2004 17:57:07 -0500 Subject: Incremental clustering? From: John Siracusa To: Postgres Admin Message-ID: Mime-version: 1.0 Reply-To: siracusa@mindspring.com Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/25 X-Sequence-Number: 11888 The docs say: "Clustering is a one-time operation: when the table is subsequently updated, the changes are not clustered. That is, no attempt is made to store new or updated rows according to their index order. If one wishes, one can periodically recluster by issuing the command again." and "During the cluster operation, a temporary copy of the table is created that contains the table data in the index order. Temporary copies of each index on the table are created as well. Therefore, you need free space on disk at least equal to the sum of the table size and the index sizes." I don't relish totally locking and making a temporary copy of my biggest table, but that's exactly the table that seems to need clustering the most. Will subsequent cluster command also make a complete copy? Some form of "incremental clustering" would be nice... -John