X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 63090D1B551 for ; Fri, 17 Oct 2003 18:13:52 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 86747-08 for ; Fri, 17 Oct 2003 15:13:22 -0300 (ADT) Received: from pluton.chilepac.com (pluton.chilepac.com [200.31.49.5]) by svr1.postgresql.org (Postfix) with SMTP id 3D5FDD1B542 for ; Fri, 17 Oct 2003 15:13:19 -0300 (ADT) Received: (qmail 6342 invoked from network); 17 Oct 2003 18:13:19 -0000 Received: from unknown (HELO localhost) (127.0.0.1) by 127.0.0.1 with SMTP; 17 Oct 2003 18:13:19 -0000 Date: Fri, 17 Oct 2003 15:13:18 -0300 (CLST) From: Rodrigo Gesswein X-X-Sender: rodri@pluton.chilepac.com To: pgsql-sql@postgresql.org Subject: new max function Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/212 X-Sequence-Number: 15612 Hello! I'm looking for a function to calculate the max value from two numbers, something like max2(a,b) with a,b int Does anyone have the trick ? Thank you in advance.. Rodrigo!