X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 2D098D1B51D for ; Fri, 26 Sep 2003 03:47:07 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 08993-02 for ; Fri, 26 Sep 2003 00:46:56 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 27FE1D1B4F2 for ; Fri, 26 Sep 2003 00:46:56 -0300 (ADT) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3682380; Thu, 25 Sep 2003 20:47:27 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: Roberto Mello , "George A.J" Subject: Re: Case Insensitive comparison Date: Thu, 25 Sep 2003 20:46:39 -0700 User-Agent: KMail/1.4.3 Cc: pgsql-sql@postgresql.org References: <20030925033550.35699.qmail@web14915.mail.yahoo.com> <20030925053008.GC4203@cc.usu.edu> In-Reply-To: <20030925053008.GC4203@cc.usu.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200309252046.39636.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/321 X-Sequence-Number: 15299 Roberto, > > Another problem is in creating function... > > How can i create a function that accept and return any type. the type > > "any" is not allowing as parameter or return type. Is it possible? i want > > to create a function similar to NULLIF(). > > Use the standard coalesce(). NULLIF is the converse of COALESCE(). Any idea when you're going to overhaul the CookBook? -- Josh Berkus Aglio Database Solutions San Francisco