Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 771262E3269 for ; Mon, 11 Feb 2008 17:33:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 31848-08 for ; Mon, 11 Feb 2008 17:33:36 -0400 (AST) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by postgresql.org (Postfix) with ESMTP id 849172E3252 for ; Mon, 11 Feb 2008 17:33:40 -0400 (AST) Received: by wr-out-0506.google.com with SMTP id 71so4714752wri.5 for ; Mon, 11 Feb 2008 13:33:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=mo2CmfagBbhjWXY8zgAtAFYAeQ5hdBfpIq35c5OP97A=; b=KrNOYThhMfM/5GQJMWx425jqqH+zw7ENopnHHB9L/wGB2BQkHoJTy7sca0qq7zM4WRYXO83BNr/zB4hDTT6+5tUR+sSKEJw7GzWKjTFej/Ut7CLJxblgXJi+VxeiHViAMF+E0IjPygPLpFpAcx5s1oAbnzGhxwyD24dN+iWEJIM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=E96d/boUa/feaHlBafSRpxY6p+Jm915/1Qt6zn1f1l7sNuxHPE8GaBf2F3/FphjqL4YZlkZTQ7rbm7ZegC4I8EK2avCNab75AtIafBhjdInc4cid++8a2IXguOOL6eAmc/mRE69fhbi27GIVsWSOA07j2l3kok3MfQQlTlA6L18= Received: by 10.114.146.1 with SMTP id t1mr568167wad.20.1202765617874; Mon, 11 Feb 2008 13:33:37 -0800 (PST) Received: by 10.114.131.4 with HTTP; Mon, 11 Feb 2008 13:33:37 -0800 (PST) Message-ID: Date: Mon, 11 Feb 2008 15:33:37 -0600 From: "Scott Marlowe" To: salman Subject: Re: [PERFORM] Question about CLUSTER Cc: pgsql-novice@postgresql.org, pgsql-admin@postgresql.org, pgsql-performance@postgresql.org In-Reply-To: <47B0AA1F.8040101@quietcaresystems.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47B0AA1F.8040101@quietcaresystems.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/142 X-Sequence-Number: 28216 On Feb 11, 2008 2:03 PM, salman wrote: > Hello, > > I'm planning to cluster a few large tables in our database but I'm > unable to find any recommendations/documentation on best practices -- > Mainly, whether it's better to use an index which has a higher idx_scan > value, a higher idx_tup_read value, or the higest idx_tup_fetch value. > > I'm assuming that idx_tup_read would probably be the best choice, but > want to get other opinions before proceeding. If you've got two indexes that are both being hit a lot, it might be worth looking into their correlation, and if they get used a lot together, look at creating an index on both. But I'd guess that idx_tup_read would be a good bet.