下载安装包:
https://www.postgresql.org/ftp/source/v12.0/
编译依赖安装:
yum -y install lrzsz sysstat e4fsprogs ntp readline-devel zlib zlib-devel openssl\ openssl-devel pam-devel libxml2-devel libxslt-devel python-devel tcl-devel gcc make smartmontools flex bison perl perl-devel perl-ExtUtils* OpenIPMI-tools systemtap-sdt-devel
编译
./configure --prefix=/usr/local/postgresql-12.0 --datadir=/usr/local/postgresql-12.0/data\ --htmldir=/usr/local/postgresql-12.0/docs --with-perl --with-openssl --enable-dtrace\ --enable-debug