完成PG的源码编译安装,以及解决网络访问正常连接的问题。可参考前面的文章:
从Oracle到PG-轻量简易,PostgreSQL-v11.5源码编译安装
从Oracle到PG-PostgreSQL数据库访问认证简介及问题处理
接下来看看pg常规数据库参数查看及配置问题。
一、postgresql数据库参数配置文件介绍
和Oracle一样,pg有自己专门的参数配置文件:
[postgres@akendb01]$ls -l *.conf
-rw------- 1 postgres postgres 4786 Oct 10 22:54 pg_hba.conf
-rw------- 1 postgres postgres 1636 Aug 26 21:28 pg_ident.conf
-rw------- 1 postgres postgres 137 Oct 4 10:19 postgresql.auto.conf
-rw------- 1 postgres postgres 24030 Aug 27 22:03 postgresql.conf
[postgres@akendb01]$
上面列出了几个配置文件,和数据库参数配置相关的是postgresql.conf和postgresql.auto.conf。其中:
1.postgresql.conf和Oracle的pfile一样,可以直接vi修改将具体的参数固化,参数值重启不丢失。
2.postgresql.auto.conf则记录通过alter system set p