X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EAAB753638 for ; Sun, 27 Mar 2005 17:34:46 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 56895-08 for ; Sun, 27 Mar 2005 16:34:43 +0000 (GMT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 099615369B for ; Sun, 27 Mar 2005 17:34:42 +0100 (BST) Received: (qmail 11912 invoked by uid 500); 27 Mar 2005 16:51:15 -0000 Date: Sun, 27 Mar 2005 10:51:15 -0600 From: Bruno Wolff III To: Enrico Weigelt Cc: pgsql-sql Subject: Re: (non)zero function Message-ID: <20050327165115.GI9280@wolff.to> Mail-Followup-To: Bruno Wolff III , Enrico Weigelt , pgsql-sql References: <20050327155807.GB16122@nibiru.borg.metux.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050327155807.GB16122@nibiru.borg.metux.de> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.011 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/361 X-Sequence-Number: 20840 On Sun, Mar 27, 2005 at 17:58:07 +0200, Enrico Weigelt wrote: > > Hi folks, > > > is there an function returning true if the argument is null or > zero (just to make some queries more concise). Of course its > trivial to implement as SQL function, but if postgresql already > provides such a function, I would prefer using it. No.