Locating sharedir in PostgreSQL on Windows - Mailing list pgsql-hackers

From Mark Cave-Ayland
Subject Locating sharedir in PostgreSQL on Windows
Date
Msg-id 1196088790.5818.9.camel@mca-desktop
Whole thread Raw
Responses Re: Locating sharedir in PostgreSQL on Windows
List pgsql-hackers
Hi everyone,

I'm working on a piece of code for PostGIS to allow the loading of
projection configuration files from the share/postgresql directory, but
I can't find a way of getting this to work under Win32.

AIUI the way to do this would be to use a combination of my_exec_path
and get_share_path in order to find the directory, but MingW refuses to
find the my_exec_path variable during linking. Unfortunately I suspect
that this because my_exec_path is not declared as DLLIMPORT in
backend/utils/init/globals.c :(

I really need to find a solution to this that can work all the way back
to PostgreSQL 8.0 - can anyone think of any better ideas?


Many thanks,

Mark.

-- 
ILande - Open Source Consultancy
http://www.ilande.co.uk




pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Replacement Selection
Next
From: Tom Lane
Date:
Subject: Re: 8.3devel slower than 8.2 under read-only load