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