Re: [pgsql-hackers-win32] Function to do runtime relative directory - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: [pgsql-hackers-win32] Function to do runtime relative directory
Date
Msg-id 200405041841.i44IfWA11908@candle.pha.pa.us
Whole thread Raw
In response to Re: [pgsql-hackers-win32] Function to do runtime relative directory  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: [pgsql-hackers-win32] Function to do runtime relative directory  (Andrew Dunstan <andrew@dunslane.net>)
Re: [pgsql-hackers-win32] Function to do runtime relative directory  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Andrew Dunstan wrote:
> Bruce Momjian wrote:
>
> >+             if (toupper(*src) != toupper(*src))
> >
> >
>
> Shouldn't this be
>
> if (toupper(*src) != toupper(*dst))
>
> ?
>

Yep, fixed.

> For completeness, you should probably also check for network
> drive paths ("\\machine\sharename\foo").

Oh, OK.

>
> I also think we should just canonicalise everything early, and
> then never have to worry about / vs \ again.
>
> I must confess I think this scheme is overkill - I can't think
> of a use case where one would want a relocatable installation
> which would any pattern other than the one we are thinking of
> for the windows binary installer. Are we taking flexibility too
> far?

This code might be used on Unix too.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [pgsql-hackers-win32] Function to do runtime relative directory
Next
From: Andrew Dunstan
Date:
Subject: Re: [pgsql-hackers-win32] Function to do runtime relative directory