1.版本信息:
升级前 | 升级后 |
postgre14.6 | postgre14.11 |
2.升级步骤
2.1下载升级包
[root@localhost postgresql]# wget https://ftp.postgresql.org/pub/source/v14.11/postgresql-14.11.tar.bz2
2.2安装新版本postgresql
[root@localhost postgresql]# tar -xvf postgresql-14.11.tar.bz2
[root@localhost postgresql]# cd postgresql-14.11
#创建安装目录
[root@localhost postgresql-14.11]# mkdir -p /usr/local/pgsql14.11
#编译安装
[root@localhost postgresql-14.11]# ./configure --prefix=/usr/local/pgsql14.11 --with-perl --with-python --with-libxml --with-libxslt --with-openssl
[root@localhost postgresql-14.11]# make && make install
#查看是否安装到指定目录:/usr/local/pgsql14.11
[root@localhost pgsql14.11]# pwd
/usr/local/pgsql14.11
[root@loc