Re: Earth Distance patch

Lists: pgsql-patches
From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: pgsql-patches(at)postgresql(dot)org
Subject: Earth Distance patch
Date: 2002-09-12 13:17:16
Message-ID: 20020912131716.GA5339@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

The attached patch defines functions for getting distances between points
on the surface of the earth and locating points within a specified distance
using an index based on the contrib/cube package. The new functions are
all of language type sql.
A couple of bugs in the old earthdistance function based on the point
datatype are fixed.
A regression test has been added for both sets of functions.
The README file has been updated to include documentation on the new stuff.
There are comments about how this package is also useful for Astronomers.

Attachment Content-Type Size
earth.diff text/plain 50.2 KB

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Earth Distance patch
Date: 2002-09-12 14:35:49
Message-ID: 7101.1031841349@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Bruno Wolff III <bruno(at)wolff(dot)to> writes:
> The attached patch defines functions for getting distances between points
> on the surface of the earth and locating points within a specified distance
> using an index based on the contrib/cube package. The new functions are
> all of language type sql.

Is this bug fix, or new features? We are past the point of accepting
new features for 7.3.

regards, tom lane


From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Earth Distance patch
Date: 2002-09-12 15:28:39
Message-ID: 20020912152839.GA6554@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

On Thu, Sep 12, 2002 at 10:35:49 -0400,
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Bruno Wolff III <bruno(at)wolff(dot)to> writes:
> > The attached patch defines functions for getting distances between points
> > on the surface of the earth and locating points within a specified distance
> > using an index based on the contrib/cube package. The new functions are
> > all of language type sql.
>
> Is this bug fix, or new features? We are past the point of accepting
> new features for 7.3.

Some of both.

I found some bugs in the original earthdistance code while trying to make
up regression tests.

If you would like I can split this. I can submit the bug fixes and a regression
test for the old stuff. And then after 7.3 comes out, resubmit the additional
documentation, functions (all of language type sql) and regression tests.


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Earth Distance patch
Date: 2002-09-18 03:40:37
Message-ID: 200209180340.g8I3ebZ17308@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches


This was the email that prompted the second, smaller page. Do we
feature freeze beta?

---------------------------------------------------------------------------

Bruno Wolff III wrote:
> On Thu, Sep 12, 2002 at 10:35:49 -0400,
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> > Bruno Wolff III <bruno(at)wolff(dot)to> writes:
> > > The attached patch defines functions for getting distances between points
> > > on the surface of the earth and locating points within a specified distance
> > > using an index based on the contrib/cube package. The new functions are
> > > all of language type sql.
> >
> > Is this bug fix, or new features? We are past the point of accepting
> > new features for 7.3.
>
> Some of both.
>
> I found some bugs in the original earthdistance code while trying to make
> up regression tests.
>
> If you would like I can split this. I can submit the bug fixes and a regression
> test for the old stuff. And then after 7.3 comes out, resubmit the additional
> documentation, functions (all of language type sql) and regression tests.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Earth Distance patch
Date: 2002-09-18 04:40:27
Message-ID: 200209180440.g8I4eRc26463@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: Postg윈 토토SQL :


This has been saved for the 7.4 release:

http://candle.pha.pa.us/cgi-bin/pgpatches2

We will apply only the non-7.3 stuff. In fact, I will probably just get
back to you on this during 7.4 or you will submit a new one.

---------------------------------------------------------------------------

Bruno Wolff III wrote:
> The attached patch defines functions for getting distances between points
> on the surface of the earth and locating points within a specified distance
> using an index based on the contrib/cube package. The new functions are
> all of language type sql.
> A couple of bugs in the old earthdistance function based on the point
> datatype are fixed.
> A regression test has been added for both sets of functions.
> The README file has been updated to include documentation on the new stuff.
> There are comments about how this package is also useful for Astronomers.

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Earth Distance patch
Date: 2002-09-18 12:38:48
Message-ID: 20020918123848.GA1299@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

On Wed, Sep 18, 2002 at 00:40:27 -0400,
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> wrote:
>
> This has been saved for the 7.4 release:
>
> http://candle.pha.pa.us/cgi-bin/pgpatches2
>
> We will apply only the non-7.3 stuff. In fact, I will probably just get
> back to you on this during 7.4 or you will submit a new one.

That is fine.

There may be better ways to handle that contrib than putting it with
earthdistance. Most people aren't going to want both at the same time (as one
uses point and the other uses cube).


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Earth Distance patch
Date: 2002-11-08 20:19:25
Message-ID: 200211082019.gA8KJPq09528@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches


I have applied your patch by pickout out the pieces that were already
not in CVS. Thanks.

---------------------------------------------------------------------------

Bruno Wolff III wrote:
> The attached patch defines functions for getting distances between points
> on the surface of the earth and locating points within a specified distance
> using an index based on the contrib/cube package. The new functions are
> all of language type sql.
> A couple of bugs in the old earthdistance function based on the point
> datatype are fixed.
> A regression test has been added for both sets of functions.
> The README file has been updated to include documentation on the new stuff.
> There are comments about how this package is also useful for Astronomers.

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Attachment Content-Type Size
unknown_filename text/plain 53.3 KB