Clean up installation directory choices for extensions.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 24d1280c4d75038f130495a25844c60d6810faab
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-02-12T03:53:43Z
Releases: 9.1.0
Clean up installation directory choices for extensions.

Arrange for the control files to be in $SHAREDIR/extension not
$SHAREDIR/contrib, since we're generally trying to deprecate the term
"contrib" and this is a once-in-many-moons opportunity to get rid of it in
install paths.  Fix PGXS to install the $EXTENSION file into that directory
no matter what MODULEDIR is set to; a nondefault MODULEDIR should only
affect the script and secondary extension files.  Fix the control file
directory parameter to be interpreted relative to $SHAREDIR, to avoid a
surprising disconnect between how you specify that and what you set
MODULEDIR to.

Per discussion with David Wheeler.

Files

PathChange+/−
doc/src/sgml/extend.sgml modified +16 −11
doc/src/sgml/ref/create_extension.sgml modified +1 −1
src/backend/commands/extension.c modified +4 −5
src/makefiles/pgxs.mk modified +25 −10