X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 87563D84F1 for ; Tue, 6 Sep 2005 17:36:53 -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 76596-04 for ; Tue, 6 Sep 2005 20:36:50 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id A1D5ED79DB for ; Tue, 6 Sep 2005 17:36:51 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j86Kaq35020339; Tue, 6 Sep 2005 16:36:52 -0400 (EDT) To: huaxin zhang Cc: pgsql-admin@postgresql.org Subject: Re: how to change index cluster ratio? In-reply-to: References: <20050905004011.GA63674@winnie.fuhr.org> Comments: In-reply-to huaxin zhang message dated "Tue, 06 Sep 2005 14:57:46 -0400" Date: Tue, 06 Sep 2005 16:36:52 -0400 Message-ID: <20338.1126039012@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200509/49 X-Sequence-Number: 18786 huaxin zhang writes: > One problem I found is that even if I specify to create a clustered index by > "cluster idx_name on table_name", I still can not tell the optimizer that the > index of "idx_name" is a clustered index with "index correlation" value as 1.0 > (traced from the cost_index() in costsize.c) The next ANALYZE should figure that out. regards, tom lane