150
[root@server1 ~]# su postgres
[postgres@server1 root]$ psql -f all.sql
bash: psql: command not found
Chạy câu lệnh sau
export PATH=/opt/PostgreSQL/9.5/bin:$PATH