Re: dynamic_library_path on Win32 - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: dynamic_library_path on Win32
Date
Msg-id 40B8E68F.8060206@dunslane.net
Whole thread Raw
In response to Re: dynamic_library_path on Win32  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

Tom Lane wrote:

>"Thomas Hallgren" <thhal@mailblocks.com> writes:
>  
>
>>I'm using CVS HEAD in a windows environment. I'm trying to start the
>>postmaster using "postmaster -c dynamic_library_path=C:/foo/bar". It starts
>>just fine, then, when I ask it to load a module, an error is generating
>>stating:
>>    
>>
>
>  
>
>>ERROR: component in parameter "dynamic_library_path" is not an absolute path
>>    
>>
>
>  
>
>>I added a trace to find out what it thinks the path is. It prints "C".
>>Obviously it treats ':' as a path separator somewhere.
>>    
>>
>
>Yeah.  dynamic_library_path follows the universal Unix convention that
>search path components are separated by ':'.  Is there any equivalent
>convention in Windows?
>
>  
>

src/port/exec.c has this:


#ifdef WIN32
#define PATHSEP ';'
#else
#define PATHSEP ':'
#endif

It should probably move to c.h.

cheers

andrew






pgsql-hackers by date:

Previous
From: "Thomas Hallgren"
Date:
Subject: Re: dynamic_library_path on Win32
Next
From: Greg Stark
Date:
Subject: Re: Extended customizing, SQL functions,