X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.225.181]) by svr1.postgresql.org (Postfix) with ESMTP id 9ED73D1C4C1 for ; Tue, 22 Jul 2003 01:35:18 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr5.postgresql.org [64.117.225.181]) (amavisd-new, port 10024) with ESMTP id 92269-09 for ; Tue, 22 Jul 2003 01:34:59 +0000 (GMT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 13FB4D1C93A for ; Mon, 21 Jul 2003 22:34:58 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h6M1Yhr09877; Mon, 21 Jul 2003 21:34:43 -0400 (EDT) From: Bruce Momjian Message-Id: <200307220134.h6M1Yhr09877@candle.pha.pa.us> Subject: Re: min() and NaN In-Reply-To: <5212.1058802199@sss.pgh.pa.us> To: Tom Lane Date: Mon, 21 Jul 2003 21:34:43 -0400 (EDT) Cc: Jean-Luc Lachance , "Michael S. Tibbetts" , pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/313 X-Sequence-Number: 14427 Is this a TODO? --------------------------------------------------------------------------- Tom Lane wrote: > Jean-Luc Lachance writes: > > If a compare with NaN is always false, how about rewriting it as: > > result = ((arg1 < arg2) ? arg2 : arg1). > > That just changes the failure mode. > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073