yum install postgresql 11 on centos 7 code example
Example 1: how to install postgresql on centos 7
yum list postgresql*
Example 2: how to install postgresql on centos 7
sudo yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm