> ------- Original Message -------
> From: Peter Eisentraut <peter_e@gmx.net>
> To: Dave Page <dpage@postgresql.org>
> Sent: 26/11/07, 20:14:25
> Subject: Re: [HACKERS] Locating sharedir in PostgreSQL on Windows
>
> Dave Page wrote:
> > How does that work with the stuff that goes into directories relative to
> > $libdir (per documented recommendations), without creating easy-to-break
> > paths like $libdir/../../MyAddon/8.3/MyAddon.dll?
>
> Which documented recommendation do you speak of?
>
http://www.postgresql.org/docs/8.3/static/xfunc-c.html states:
==========
It is recommended to locate shared libraries either relative to $libdir or through the dynamic library path. This
simplifiesversion upgrades if the new installation is at a different location. The actual directory that $libdir stands
forcan be found out with the command pg_config --pkglibdir.
==========
That seems to have been there since at least 7.2.
/D