Re: contrib function naming, and upgrade issues - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: contrib function naming, and upgrade issues
Date
Msg-id 1237626819.3953.550.camel@ebony.2ndQuadrant
Whole thread Raw
In response to contrib function naming, and upgrade issues  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Responses Re: contrib function naming, and upgrade issues  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List pgsql-hackers
On Sat, 2009-03-21 at 01:57 +0000, Andrew Gierth wrote:
> Note that I'm talking here about the names of the C functions, not
> the SQL names.
> 
> The existing hstore has some very dubious choices of function names
> (for non-static functions) in the C code; functions like each(),
> delete(), fetchval(), defined(), tconvert(), etc. which all look to me
> like prime candidates for name collisions and consequent hilarity.
> 
> The patch I'm working on could include fixes for this; but there's an
> obvious impact on anyone upgrading from an earlier version... is it
> worth it?

Perhaps you can have two sets of functions, yet just one .so? One with
the old naming for compatibility, and a set of dehilarified function
names for future use. Two .sql files, giving the user choice.

-- Simon Riggs           www.2ndQuadrant.comPostgreSQL Training, Services and Support



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: contrib function naming, and upgrade issues
Next
From: Andrew Gierth
Date:
Subject: Re: contrib function naming, and upgrade issues