Re: Postgres User Home ENV Help

From: amulsul <sul_amul(at)yahoo(dot)co(dot)in>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Postgres User Home ENV Help
Date: 2013-07-17 10:54:27
Message-ID: 1374058467586-5764052.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

>Can someone please help me set the 'postgres' users home ENV so that I
>can simply type 'psql' rather than the rull path and bash doesn't say
>'-bash-4.1$'?

You, need to log in your system, do the following steps

1. open file .bash_profile as " vim ~/.bash_profile "

2. Add line " PATH=<path of your postgres bin>:$PATH " without quotation
before "export PATH "
in my case "PATH=/opt/PostgreSQL/bin:$PATH"

3. save file and run command in terminal " source ~/.bash_profile "

4. verify it exported correctly or not as follow
[amul(at)localhost ~]$ which psql
/opt/PostgreSQL/bin/psql

Regards,
Amul

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Postgres-User-Home-ENV-Help-tp5760206p5764052.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message amulsul 2013-07-18 02:06:30 Re: PostgreSQL 9.2 archiving last replayed WAL after recovery
Previous Message Anne Wainwright 2013-07-12 07:00:10 Re: carriage returns out as \n