Re: multi-install PostgresNode - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: multi-install PostgresNode
Date
Msg-id 20210128142444.GA31513@alvherre.pgsql
Whole thread Raw
In response to Re: multi-install PostgresNode  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: multi-install PostgresNode  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On 2021-Jan-28, Andrew Dunstan wrote:

... neat stuff, thanks.

> +            # Windows picks up DLLs from the PATH rather than *LD_LIBRARY_PATH
> +            # choose the right path separator
> +            if ($Config{osname} eq 'MSWin32')
> +            {
> +               $ENV{PATH} = "$inst/bin;$inst/lib;$ENV{PATH}";
> +            }
> +            else
> +            {
> +               $ENV{PATH} = "$inst/bin:$inst/lib:$ENV{PATH}";
> +            }

Hmm, if only Windows needs lib/ in PATH, then we do we add $inst/lib to
PATH even when not Windows?

> +            if (exists $ENV{DYLIB})
> +            {
> +                $ENV{DYLIB} = "$inst/lib:$ENV{DYLIB}";
> +            }
> +            else
> +            {
> +                $ENV{DYLIB} = "$inst/lib}";

Note extra closing } in the string here.

-- 
Álvaro Herrera                            39°49'30"S 73°17'W



pgsql-hackers by date:

Previous
From: 'Alvaro Herrera'
Date:
Subject: Re: libpq debug log
Next
From: Justin Pryzby
Date:
Subject: Re: CREATE INDEX CONCURRENTLY on partitioned index