X-Original-To: pgsql-performance@postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id AA8179259EE for ; Wed, 28 May 2003 14:30:02 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 04507-05 for ; Wed, 28 May 2003 14:29:58 -0400 (EDT) Received: from relay.icomedias.com (relay.icomedias.com [62.99.232.66]) by developer.postgresql.org (Postfix) with ESMTP id E4B03925A4C for ; Wed, 28 May 2003 14:29:50 -0400 (EDT) Received: from loki.icomedias.com ([10.192.17.128]) by relay.icomedias.com (8.12.9/8.12.9) with ESMTP id h4SITigB004194; Wed, 28 May 2003 20:29:46 +0200 From: Mario Weilguni To: Dave Tenny , Andreas Pflug Subject: Re: IN list processing performance (yet again) Date: Wed, 28 May 2003 20:29:43 +0200 User-Agent: KMail/1.5.2 Cc: pgsql-performance@postgresql.org References: <3ED4B0E5.3050703@attbi.com> <3ED4B75A.2050106@web.de> <3ED4FB02.1010908@attbi.com> In-Reply-To: <3ED4FB02.1010908@attbi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200305282029.44152.mweilguni@sime.com> avpresult: 0, ok, ok, X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/243 X-Sequence-Number: 2022 > I'm reminded to relay to the PostgreSQL devos that I might be able to do > more in the join or subquery department if > PostgreSQL had better performing MAX functions and a FIRST function for > selecting rows from groups. > ("Performing" being the operative word here, since the extensible > architecture of PostgreSQL currently makes for poorly > performing MAX capabilities and presumably similar user defined > aggregate functions). MIN/MAX is almost in every case replaceable: select bar from foo order by bar limit 1; instead of select max(bar) from foo;