Re: Locating sharedir in PostgreSQL on Windows

From: Mark Cave-Ayland <mark(dot)cave-ayland(at)ilande(dot)co(dot)uk>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Locating sharedir in PostgreSQL on Windows
Date: 2007-11-26 22:17:09
Message-ID: 1196115429.5818.15.camel@mca-desktop
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 2007-11-26 at 11:55 -0500, Tom Lane wrote:

> I'm not sure why Mark's having a problem accessing my_exec_path ---
> it *is* declared DLLIMPORT in miscadmin.h (which is where it counts,
> AIUI) clear back to 8.0.

Bah, I think that is the source of the problem. Having grepped the
source for my_exec_path, I found the reference in globals.c and hence
the code worked on Linux (my main development environment) with a simple
extern declaration which was what was confusing me. Adding the #include
"miscadmin.h" solves this problem and I can now access the variable on
Windows aswell, so I put this down to "user error" - thanks for the
advice Tom.

Many thanks,

Mark.

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Page 2007-11-26 22:19:24 Re: Locating sharedir in PostgreSQL on Windows
Previous Message Tom Lane 2007-11-26 22:17:07 Re: Replacement Selection