Geometric types (was Re: [PATCHES] guc)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Liam Stewart <liams(at)redhat(dot)com>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Geometric types (was Re: [PATCHES] guc)
Date: 2002-01-18 06:31:42
Message-ID: 4817.1011335502@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Not really. I'd much rather see the EPSILON removed/revised. I don't
> claim to understand numerical analysis, but that thing is completely
> bogus.

Yeah, and there's even the handy comment:

* XXX These routines were not written by a numerical analyst.

to remind you that this stuff was written by someone who was studying
databases not numerical analysis.

In my eyes, all of our geometric datatypes are firmly in the "academic
toy prototype" category. They could use a thorough overhaul, but in
view of the existence of the PostGIS project I doubt they'll ever get
one. Anyone who might have both the ability and the motivation to
improve these datatypes will probably go use/work on PostGIS instead.

I could make an argument that we should just yank these types from the
distribution and leave the field clear for PostGIS. I don't really want
to take that line; the types do have usefulness for simple applications,
and what's probably more important is they help keep us honest on
datatype extensibility concerns. But I have a hard time justifying
spending any core development time on them.

Basically what I want is some fairly simple answer that will let us stop
wasting quite so much maintenance effort on the geometry regression
test. Because, frankly, that code is nowhere near good enough to
justify our expending much time on it.

In that context, trimming the number of displayed decimal places seems
like a great solution. Whether it's the "right thing" from a purist's
viewpoint doesn't concern me a whole lot.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-01-18 06:31:49 Re: Bug in pg_dump/restore -o
Previous Message Philip Warner 2002-01-18 06:28:21 Re: Bug in pg_dump/restore -o

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2002-01-18 16:16:22 Re: Segmentation fault of psql unset
Previous Message sugita 2002-01-18 06:11:14 Segmentation fault of psql unset