Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 0170E1337B4F for ; Wed, 10 Nov 2010 14:57:41 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 19233-09 for ; Wed, 10 Nov 2010 18:57:34 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 618B31337B2F for ; Wed, 10 Nov 2010 14:57:33 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id oAAIvSs4007683; Wed, 10 Nov 2010 13:57:28 -0500 (EST) To: Mike Fowler , Jin , pgsql-bugs@postgresql.org Subject: Re: BUG #5745: geometry bug? In-reply-to: <5790.1289410575@sss.pgh.pa.us> References: <201011101008.oAAA8Xm2028579@wwwmaster.postgresql.org> <4CDAC390.9030903@mlfowler.com> <5790.1289410575@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 10 Nov 2010 12:36:15 -0500" Date: Wed, 10 Nov 2010 13:57:27 -0500 Message-ID: <7682.1289415447@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/62 X-Sequence-Number: 28642 I wrote: > So I'm thinking somebody fat-fingered the corner case > where the perpendicular would have infinite slope, and it is falling > through to the "take the nearer endpoint" case when it shouldn't. Actually it's more basic than that: the line_construct_pm() function is just completely bogus for the case of infinite slope. Will fix. regards, tom lane