Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E6E86476D17; Thu, 12 Dec 2002 16:31:38 -0500 (EST) Received: from beamish.nsd.ca (unknown [205.150.156.194]) by postgresql.org (Postfix) with ESMTP id ECF7B475E24; Thu, 12 Dec 2002 16:31:37 -0500 (EST) Received: (from smap@localhost) by beamish.nsd.ca (8.9.3/8.9.3) id QAA10221; Thu, 12 Dec 2002 16:31:38 -0500 X-Authentication-Warning: beamish.nsd.ca: smap set sender to using -f Received: from reddog.nsd.ca(192.168.101.30) by beamish.nsd.ca via smap (V2.1/2.1+anti-relay+anti-spam) id xma010219; Thu, 12 Dec 02 16:31:10 -0500 Received: from nsd.ca (jllachan-linux.nsd.ca [192.168.101.148]) by reddog.nsd.ca (8.8.7/8.8.7) with ESMTP id QAA05029; Thu, 12 Dec 2002 16:29:39 -0500 Message-ID: <3DF90042.E5290B7F@nsd.ca> Date: Thu, 12 Dec 2002 16:31:46 -0500 From: Jean-Luc Lachance X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.9-31 i686) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-general@postgresql.org Cc: pgsql-performance@postgresql.org Subject: CLUSTER command References: <5.1.0.14.1.20021212010621.0273d040@mbox.jaring.my> <5.1.0.14.1.20021212010621.0273d040@mbox.jaring.my> <5.1.0.14.1.20021213043655.027360b0@mbox.jaring.my> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/659 X-Sequence-Number: 34574 Hi all, I just read about the cluster command and was a little (very) disapointed. Clustered tables do not remain clustered after inserts. Clustered tables are usefull when the table is very large and there are few different keys. Because the table file is already extended (2G limit) using different files extension (.N) how complicated (modifying the code) would it be to have the table files split according to the cluster key? This would: Greatly improve performance when the cluster key in included in search criteria. Allow for a much larger table before a file has to be split (.N). Simplify the management of symblinks (that's something else we need to look at). The index file for that field would no longer be required. Of course, there should be only one cluster key per table. The length the "key" should be short and the number of unique key should be low as well. SO... ? JLL