Making small bits of code available

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: pgsql-general(at)postgresql(dot)org
Subject: Making small bits of code available
Date: 2002-09-06 07:09:21
Message-ID: 20020906070921.GA15111@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

I have some sql to define some functions for doing conversions between
cube and latitude and longitude (as float8) and for calculating
great circle distances between cubes (using a spherical model of the earth).
I am not sure the code is suitable for contrib.
The code picks a radius of the earth in meters. Other people may choose to
use different units or even use a different radius in meters.
I have grants in the code to make the cube functions and the functions
defined by the script as execute for public. (The cube stuff needs to be
done as postgres since a type is created, but then the functions aren't
generally accessible by default.)
The script is about 5K.
Some people might find this useful as there are some advantages to keeping
track of locations on the earth using cube (with 3D coordinates) as opposed
to using point (with 2D coordinates).

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jean-Christian Imbeault 2002-09-06 07:24:23 Date not being parsed as expected
Previous Message Eugene Kim 2002-09-06 03:12:09 this is postgresql question..how do i drop unique constraint on a column?

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2002-09-06 07:20:43 Re: [PATCHES] Big number of "unused" pages as reported by VACUUM
Previous Message Yury Bokhoncovich 2002-09-06 06:56:52 Re: [PATCHES] Big number of "unused" pages as reported by