Re: Making small bits of code available

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Making small bits of code available
Date: 2002-09-07 19:32:40
Message-ID: 20020907193240.GB30941@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Sat, Sep 07, 2002 at 12:52:06 -0400,
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> wrote:
>
> > Should the creation of these functions be added to the existing script
> > for earth_distance or should it be a separate script? It seems unlikely
> > that someone would be using both of these at the same time, since one
> > is based on the point type and the other on the cube type. However the
> > overhead of installing both seems small, so maybe making it easier to
> > try both and then pick one is worthwhile.
>
>
> Install them both. Just make sure it is clear which is which, or are
> yours superior and the old one should be removed?

They are different and someone could want either.

I forgot to ask about how to handle the dependency on contrib/cube.

I can see three options. Automatically install contrib/cube when building
contrib/earthdistance, refuse to work unless contrib cube appears to be
installed, or only install the original stuff if contribe/cube is not
available. Trying to do different installs based on whether or not
contrib/cube is installed seems like a bad idea as it is mistake prone
and could be confusing.

>
> Not sure. I don't think we want to public permit this stuff unless the
> admin asks for it.

I will put in some comments about needing to make functions public for normal
user access.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2002-09-08 02:12:47 Re: PostgresQL or PHP bug?
Previous Message Bruce Momjian 2002-09-07 19:27:09 Re: [GENERAL] Making small bits of code available

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2002-09-07 19:45:13 Re: [HACKERS] Please rename split(text,text,int) to splitpart
Previous Message Alvaro Herrera 2002-09-07 19:30:05 Re: current_schemas()