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

From Martijn van Oosterhout
Subject Re: contrib function naming, and upgrade issues
Date
Msg-id 20090321132215.GA13958@svana.org
Whole thread Raw
In response to Re: contrib function naming, and upgrade issues  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List pgsql-hackers
On Sat, Mar 21, 2009 at 01:05:35PM +0000, Andrew Gierth wrote:
> (Perhaps we should be linking contrib and pgxs modules with -Bsymbolic
> on those platforms where it matters?)

Another possibility is to use the visibility attributes such as those
provided in GCC. Maybe the version1 declarion of a function could add
the appropriate magic to set the visiblity to public and alter PGXS to
set the default visibility to hidden. Voila, modules whose only
exported symbols are those declared with a version-1 declaration.

Perhaps a little too much magic :)

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

pgsql-hackers by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: contrib function naming, and upgrade issues
Next
From: Bruce Momjian
Date:
Subject: Re: small but useful patches for text search