Re: Function to do runtime relative directory

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PostgreSQL Win32 port list <pgsql-hackers-win32(at)postgresql(dot)org>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Function to do runtime relative directory
Date: 2004-05-04 19:00:15
Message-ID: 4097E83F.6040000@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-hackers-win32 pgsql-patches

Bruce Momjian wrote:

>Andrew Dunstan wrote:
>
>
>>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.
>
>
>

I know. I can't think of a Unix situation where you would want anything
else either.

If you want it relocatable, I would think that you would want

movable-root/
/bin
/lib
/share
/whatever

and then you could just pick up that root and put it somewhere else and
it would still work, Windows or Unix, it wouldn't matter, and you
wouldn't break anything else. I guess using some other scheme you could
pick up the various bits from under, say, /usr and put them in
/usr/local, but it strikes me as being very messy and likely to be error
prone.

Maybe it's just a failure of my imagination.

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-05-04 19:04:46 Re: [HACKERS] What can we learn from MySQL?
Previous Message Bruce Momjian 2004-05-04 18:41:32 Re: Function to do runtime relative directory

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Magnus Hagander 2004-05-04 20:13:17 Re: man pages on win32
Previous Message Bruce Momjian 2004-05-04 18:41:32 Re: Function to do runtime relative directory

Browse pgsql-patches by date

  From Date Subject
Next Message Robert Treat 2004-05-04 20:31:50 Re: new aggregate functions v2
Previous Message Bruce Momjian 2004-05-04 18:41:32 Re: Function to do runtime relative directory