From 6cc4175b256cfc87411f9e704f9a34cf54f6b256 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 10 Jun 2004 22:26:24 +0000 Subject: 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 --- doc/src/sgml/runtime.sgml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 2a9177170c7..59d59a5e6f0 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ @@ -2617,8 +2617,9 @@ SET ENABLE_SEQSCAN TO OFF; - The value for dynamic_library_path has to be a colon-separated - list of absolute directory names. If a directory name starts + The value for dynamic_library_path 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 $libdir, the compiled-in PostgreSQL package library directory is substituted. This where the modules @@ -2628,6 +2629,10 @@ SET ENABLE_SEQSCAN TO OFF; example: dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' + + or, in a windows environment: + +dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir' -- cgit v1.2.3