X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 2C14E310B68 for ; Tue, 1 Jul 2003 03:32:51 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 58449-02 for ; Tue, 1 Jul 2003 00:32:40 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.10.40.251]) by svr1.postgresql.org (Postfix) with ESMTP id 2A1E7310B06 for ; Tue, 1 Jul 2003 00:32:40 -0300 (ADT) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3170628; Mon, 30 Jun 2003 20:32:50 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: Stefan Bill , pgsql-sql@postgresql.org Subject: Re: LEAST and GREATEST functions? Date: Mon, 30 Jun 2003 20:32:23 -0700 User-Agent: KMail/1.4.3 References: <20030630201057.14507.qmail@web13905.mail.yahoo.com> In-Reply-To: <20030630201057.14507.qmail@web13905.mail.yahoo.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200306302032.23113.josh@agliodbs.com> X-Archive-Number: 200307/3 X-Sequence-Number: 14117 Stefan, > I know the LEAST and GREATEST functions are not part > of standard SQL, but they sure were handy where I came > from (Oracle-land). > > Has anyone written user-defined functions that do the > same thing? > > Are there any plans to add these functions as part of > a future version Postgres? Um, what's wrong with MAX and MIN, exactly? -- Josh Berkus Aglio Database Solutions San Francisco