cd /opt/module/postgresql-12.2/contrib/
一定要在这装!!!git clone git://github.com/HypoPG/hypopg
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
yum install -y git
yum install postgresql-devel
!!!make: pg_config: Command not found
make: *** No targets. Stop.
cd /opt/module/postgresql-12.2/
vi Makefile
PG_CONFIG=/opt/pgsql/bin/pg_config
(具体路径根据不同环境自己设置)cd /opt/module/postgresql-12.2/contrib/hypopg
make&&make install
CREATE EXTENSION hypopg;