I think the problem is due to your PATH not being setup properly.
Try adding the following lines at end of your /etc/profile file:
PATH=$PATH:/usr/local/bin:/bin:/usr/bin:/usr/sbin:/sbin:/usr/local/pgsql/bin
export PATH
Just to be safe, logout and login again once you have made the changes.