1.download postgresql-9.6.3-3-linux-x64.run
wget https://get.enterprisedb.com/postgresql/postgresql-9.6.3-3-linux-x64.run
2.add –x permission
chmod u+x postgresql-9.6.3-3-linux-x64.run
3.create new directory forpostgresql
mkdir –p /data/gerrit/postgresql/
4.running .run file
./ postgresql-9.6.3-3-linux-x64.run
Chooseinstalled directory is /data/gerrit/postgrsql,will auto created new pgsql inthis path
Choosedata as its data directory.