Re: Making pgxs builds work with a relocated installation

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Magnus Hagander" <mha(at)sollentuna(dot)net>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Making pgxs builds work with a relocated installation
Date: 2005-09-27 08:17:58
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E4CC2EE9@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: Magnus Hagander [mailto:mha(at)sollentuna(dot)net]
> Sent: 27 September 2005 08:58
> To: Dave Page; Tom Lane; Peter Eisentraut
> Cc: pgsql-hackers(at)postgresql(dot)org
> Subject: RE: [HACKERS] Making pgxs builds work with a
> relocated installation
>
> > > The other open issue in this area was that on Windows,
> > pg_config needs
> > > to return space-free path names to avoid breaking the
> > makefiles. It
> > > was suggested that this could be handled by passing
> > pg_config's result
> > > path names through GetShortPathName() on that platform.
> > That sounds
> > > OK to me but I'm not in a position to write or test such a
> > patch; can
> > > someone take care of that?
> >
> > At the risk of getting squished in the rush to help, if noone
> > else volunteers I'll try to find some time.
>
> Missed this one when it came through the first time. Note: Not
> volunteering, just commenting on the how-fix :P
>
> Using GetShortPathName() will break on any system that has disabled
> short filename generatino, which IIRC is a recommended best practice
> both for performance and for security in legacy apps. I don't
> know what
> it does, but probably it will just return the same long path again.

If it's disabled, then they aren't going to be able to use short names
anyway, therefore we can't do much about it. If you see what I mean!

If GetShortPathName() just returns what was passed to it in such cases,
then at least we won't be any worse off than we are now.

Regards,Dave.

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2005-09-27 08:19:16 Re: Making pgxs builds work with a relocated installation
Previous Message Magnus Hagander 2005-09-27 07:57:30 Re: Making pgxs builds work with a relocated installation