Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id DC3DC9FB43E for ; Tue, 30 Jan 2007 19:07:29 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 30847-05 for ; Tue, 30 Jan 2007 19:07:25 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 3C8EC9FA304 for ; Tue, 30 Jan 2007 19:07:25 -0400 (AST) Received: from perhan.alvh.no-ip.org (200-126-100-202.bk7-dsl.surnet.cl [200.126.100.202]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l0UN7G9u029156; Tue, 30 Jan 2007 15:07:17 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id D3D327C83; Tue, 30 Jan 2007 18:03:03 -0300 (CLST) Date: Tue, 30 Jan 2007 18:03:03 -0300 From: Alvaro Herrera To: Luke Lonergan Cc: Gregory Stark , Chad Wagner , Simon Riggs , Igor Lobanov , Richard Huxton , pgsql-performance@postgresql.org Subject: Re: Querying distinct values from a large table Message-ID: <20070130210303.GA2178@alvh.no-ip.org> Mail-Followup-To: Luke Lonergan , Gregory Stark , Chad Wagner , Simon Riggs , Igor Lobanov , Richard Huxton , pgsql-performance@postgresql.org References: <20070130170443.GJ2303@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Tue, 30 Jan 2007 15:07:17 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/440 X-Sequence-Number: 23041 Luke Lonergan wrote: > Alvaro, > > On 1/30/07 9:04 AM, "Alvaro Herrera" wrote: > > >> (Incidentally I'm not sure where 2-5x comes from. It's entirely dependant on > >> your data distribution. It's not hard to come up with distributions where > >> it's > >> 1000x as fast and others where there's no speed difference.) > > > > So the figure is really "1-1000x"? I bet this one is more impressive in > > PHB terms. > > You got me - I'll bite - what's PHB? Pointy-Haired Boss, a term (AFAIK) popularized by the Dilbert comic strip. Why, I just noticed there's even a Wikipedia entry: http://en.wikipedia.org/wiki/Pointy_Haired_Boss It seems people enjoy writing hypothetically about their bosses. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.