export PATH=/usr/local/pgsql/bin;
export PGDATA=/usr/local/pgsql/data;
$ echo 'export PATH="$PATH:/usr/local/pgsql/bin"' >> ~/.bashrc
$ echo 'export PGDATA=/usr/local/pgsql/data' >> ~/.bashrc
# echo 'export PATH="$PATH:/usr/local/pgsql/bin"' >>/etc/profile
# echo 'export PGDATA=/usr/local/pgsql/data' >> /etc/profile
su -l postrgres