Re: Bad behaviour on some geometric operations on degenerate polygons

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Josef Grahn <josef(dot)grahn(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bad behaviour on some geometric operations on degenerate polygons
Date: 2014-02-24 17:24:15
Message-ID: 20140224172415.GB16943@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Sat, Feb 15, 2014 at 12:07:20AM -0500, Bruce Momjian wrote:
> On Sat, Feb 15, 2014 at 12:00:09AM -0500, Tom Lane wrote:
> > Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > > What is odd however, is that we allow _explicit_ creation of zero-radius
> > > circles:
> >
> > > test=> SELECT circle '<(1,1),0>';
> > > circle
> > > -----------
> > > <(1,1),0>
> > > (1 row)
> >
> > > so why do we prevent the conversion of single-point polygons to circles
> > > with zero radius? I don't know.
> >
> > Maybe we should rethink that. What you've done here seems like a kluge.
>
> Yes, it would be much easier to allow the zero-radius circles. The
> attached smaller patch allows all the cases to work:

Applied.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ Everyone has their own god. +

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2014-02-24 17:33:22 Re: BUG #8461: PostgreSQL 9.3 pg_dump heap corruptions
Previous Message Rainer Tammer 2014-02-24 11:32:38 Re: Problem with PostgreSQL 9.2.7 and make check on AIX 7.1