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

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: [pgsql-hackers-win32] Function to do runtime relative directory
Дата
Msg-id 4097E17F.40303@dunslane.net
обсуждение исходный текст
Ответ на Function to do runtime relative directory mapping  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: [pgsql-hackers-win32] Function to do runtime relative directory  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Bruce Momjian wrote:

>+         if (toupper(*src) != toupper(*src))
>
>

Shouldn't this be

    if (toupper(*src) != toupper(*dst))

?


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

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
installationwhich would any pattern other than the one we are thinking of for the windows binary installer. Are we
takingflexibility too far? 

cheers

andrew





В списке pgsql-patches по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Function to do runtime relative directory mapping
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [pgsql-hackers-win32] Function to do runtime relative directory