From e693e97d754ed6812ea115170afeae4bf8797d3f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 13 Feb 2011 13:38:05 -0500 Subject: Support replacing MODULE_PATHNAME during extension script file execution. This avoids the need to find a way to make PGXS' .sql.in-to-.sql rule insert the right thing. We'll just deprecate use of that hack for extensions. --- doc/src/sgml/extend.sgml | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/extend.sgml b/doc/src/sgml/extend.sgml index 50924a78f0e..6dc42e4ea1b 100644 --- a/doc/src/sgml/extend.sgml +++ b/doc/src/sgml/extend.sgml @@ -427,23 +427,38 @@ - requires (string) + encoding (string) - A list of names of extensions that this extension depends on, - for example requires = 'foo, bar'. Those - extensions must be installed before this one can be installed. + The character set encoding used by the script file(s). This should + be specified if the script files contain any non-ASCII characters. + Otherwise the files will be assumed to be in the database encoding. - encoding (string) + module_pathname (string) - The character set encoding used by the script file(s). This should - be specified if the script files contain any non-ASCII characters. - Otherwise the files will be assumed to be in the database encoding. + The value of this parameter will be substituted for each occurrence + of MODULE_PATHNAME in the script file(s). If it is not + set, no substitution is made. Typically, this is set to + $libdir/shared_library_name and + then MODULE_PATHNAME is used in CREATE + FUNCTION commands for C-language functions, so that the script + files do not need to hard-wire the name of the shared library. + + + + + + requires (string) + + + A list of names of extensions that this extension depends on, + for example requires = 'foo, bar'. Those + extensions must be installed before this one can be installed. -- cgit v1.2.3