Re: question about 2 versions and libraries - Mailing list pgsql-general

From Tina Messmann
Subject Re: question about 2 versions and libraries
Date
Msg-id 3CF26640.4060701@xinux.de
Whole thread Raw
In response to question about 2 versions and libraries  (Tina Messmann <tina.messmann@xinux.de>)
List pgsql-general
Oliver Elphick wrote:

>On Mon, 2002-05-27 at 14:34, Tina Messmann wrote:
>
>>Oliver Elphick wrote:
>>
>
>No, PGDATA in the environment should override the wrapper.
>
Indeed it does.

>
>
>Best to create a testing script to set up the environment.  Call it
>psql721 and make sure it is in your path:
>
>    #!/bin/sh
>    PGDATA=/usr/local/pgsql/data
>    PGPORT=6543
>    PGHOST=
>    PGLIB=/usr/local/pgs1ql/lib
>    PATH=/usr/local/pgsql/bin:$PATH
>    LD_LIBRARY_PATH=$PGLIB:$LD_LIBRARY_PATH
>    export PGDATA PGPORT PGHOST PGLIB PATH LD_LIBRARY_PATH
>    psql $@
>
>
Great. I have now 2 scripts like the above one, one for 7.1.3. and one
for 7.2.1 to set the appropriate environments before starting psql.

Thanks for your help.
Tina





pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: update db doesnt work
Next
From: terry@greatgulfhomes.com
Date:
Subject: Re: update db doesnt work