mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Attached is a patch that takes care of the PATHSEP issue. I made a more
extensive change then what was suggested. I found the file path.c that contained a lot of "Unix/Windows" agnostic functions so I added a function there instead and removed the PATHSEP declaration in exec.c altogether. All to keep things from scattering all over the code. I also took the liberty of changing the name of the functions "first_path_sep" and "last_path_sep". Where I come from (and I'm apparently not alone given the former macro name PATHSEP), they should be called "first_dir_sep" and "last_dir_sep". The new function I introduced, that actually finds path separators, is now the "first_path_sep". The patch contains changes on all affected places of course. I also changed the documentation on dynamic_library_path to reflect the chagnes. Thomas Hallgren
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.265 2004/05/26 18:51:43 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.266 2004/06/10 22:26:17 momjian Exp $
|
||||
-->
|
||||
|
||||
<Chapter Id="runtime">
|
||||
@ -2617,8 +2617,9 @@ SET ENABLE_SEQSCAN TO OFF;
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The value for <varname>dynamic_library_path</varname> has to be a colon-separated
|
||||
list of absolute directory names. If a directory name starts
|
||||
The value for <varname>dynamic_library_path</varname> has to be a
|
||||
list of absolute directory names separated by colon or, in windows
|
||||
environments with semi-colon. If a directory name starts
|
||||
with the special value <literal>$libdir</literal>, the
|
||||
compiled-in <productname>PostgreSQL</productname> package
|
||||
library directory is substituted. This where the modules
|
||||
@ -2628,6 +2629,10 @@ SET ENABLE_SEQSCAN TO OFF;
|
||||
example:
|
||||
<programlisting>
|
||||
dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
|
||||
</programlisting>
|
||||
or, in a windows environment:
|
||||
<programlisting>
|
||||
dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
|
||||
</programlisting>
|
||||
</para>
|
||||
|
||||
|
Reference in New Issue
Block a user