X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E28D332A090 for ; Fri, 8 Oct 2004 10:54:04 +0100 (BST) 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 52331-08 for ; Fri, 8 Oct 2004 09:53:58 +0000 (GMT) Received: from boutiquenumerique.com (gailleton-2-82-67-9-10.fbx.proxad.net [82.67.9.10]) by svr1.postgresql.org (Postfix) with ESMTP id 56423329E83 for ; Fri, 8 Oct 2004 10:53:59 +0100 (BST) Received: (qmail 13015 invoked from network); 8 Oct 2004 11:54:26 +0200 Received: from unknown (HELO musicbox) (192.168.0.2) by gailleton-2-82-67-9-10.fbx.proxad.net with SMTP; 8 Oct 2004 11:54:26 +0200 To: pgsql-performance@postgresql.org Subject: Re: sequential scan on select distinct References: <200410061130.58625.ole@freiheit.com> <29194.1097091506@sss.pgh.pa.us> <200410071921.08685.ole@freiheit.com> <199.1097170001@sss.pgh.pa.us> Message-ID: Date: Fri, 08 Oct 2004 11:57:13 +0200 From: =?iso-8859-15?Q?Pierre-Fr=E9d=E9ric_Caillaud?= Organization: =?iso-8859-15?Q?La_Boutique_Num=E9rique?= Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In-Reply-To: <199.1097170001@sss.pgh.pa.us> User-Agent: Opera M2/7.53 (Linux, build 737) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/98 X-Sequence-Number: 8574 > Hashing is at least as fast, if not faster. > regards, tom lane Probably quite faster if the dataset is not huge... UniqueSort would be useful for GROUP BY x ORDER BY x though