From: | Tina Messmann <tina(dot)messmann(at)xinux(dot)de> |
---|---|
To: | Oliver Elphick <olly(at)lfix(dot)co(dot)uk> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: question about 2 versions and libraries |
Date: | 2002-05-27 17:00:48 |
Message-ID: | 3CF26640.4060701@xinux.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | terry | 2002-05-27 17:14:00 | Re: update db doesnt work |
Previous Message | Tom Lane | 2002-05-27 16:49:39 | Re: update db doesnt work |