Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 2536A37C691 for ; Mon, 12 Nov 2007 02:59:11 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 23727-07 for ; Mon, 12 Nov 2007 02:59:06 -0400 (AST) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by postgresql.org (Postfix) with ESMTP id 0816237C674 for ; Mon, 12 Nov 2007 02:59:06 -0400 (AST) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IrTGD-0007KI-19 for pgsql-performance@postgresql.org; Sun, 11 Nov 2007 22:59:05 -0800 Message-ID: <13700848.post@talk.nabble.com> Date: Sun, 11 Nov 2007 22:59:05 -0800 (PST) From: adrobj To: pgsql-performance@postgresql.org Subject: Clustered/covering indexes (or lack thereof :-) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: adrobj@yahoo.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=4.741 tagged_above=0 required=5 tests=BAYES_40=-0.185, DNS_FROM_OPENWHOIS=1.13, FORGED_YAHOO_RCVD=2.297, WHOIS_MYPRIVREG=1.499 X-Spam-Level: **** X-Archive-Number: 200711/245 X-Sequence-Number: 27660 This is probably a FAQ, but I can't find a good answer... So - are there common techniques to compensate for the lack of clustered/covering indexes in PostgreSQL? To be more specific - here is my table (simplified): topic_id int post_id int post_text varchar(1024) The most used query is: SELECT post_id, post_text FROM Posts WHERE topic_id=XXX. Normally I would have created a clustered index on topic_id, and the whole query would take ~1 disk seek. What would be the common way to handle this in PostgreSQL, provided that I can't afford 1 disk seek per record returned? -- View this message in context: http://www.nabble.com/Clustered-covering-indexes-%28or-lack-thereof-%3A-%29-tf4789321.html#a13700848 Sent from the PostgreSQL - performance mailing list archive at Nabble.com.