[root@pg14 data]# cat postgresql.conf
# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
# name = value
#
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
# "#" anywhere on a line. The complete list of parameter names and allowed
# values can be found in the PostgreSQL documentation.
#
# The commented-out settings shown in this file represent the default values.
# Re-commenting a setting is NOT sufficient to revert it to the default value;
# you need to reload the server.
#
# This file is read on server startup and when the server receives a SIGHUP
# signal. If you edit the file on a running system, you have to SIGHUP the
# server for the changes to take effect, run "pg_ctl reload", or execute
# "SELECT pg_reload_conf()". Some parameters, which are marked below,
# require a server shutdown and restart to take effect.
#
# Any parameter can also be given as a command-line option to the server, e.g.,
# "postgres -c log_connections=on". Some parameters can be changed at run time
# with the "SET" SQL command.
#
# Memory units: B = bytes Time units: us = microseconds
# kB = kilobytes ms = milliseconds
# MB = megabytes s = seconds
# GB = gigabytes min = minutes
# TB = terabytes h = hours
# d = days
#------------------------------------------------------------------------------
# FILE LOCATIONS
#------------------------------------------------------------------------------
# 除了已经提到的 postgresql.conf 文件之外,PostgreSQL 还使用了另外两个手动编辑的配置文件,
它们控制客户端身份验证
# (它们的使用在第 21 章中讨论)。
# 默认情况下,所有三个配置文件都存储在数据库集群的数据目录中。
# 本节中描述的参数允许将配置文件放置在其他地方。
# (这样做可以简化管理。尤其是当配置文件分开保存时,通常更容易确保它们得到正确备份。)
# The default values of these variables are driven from the -D command-line
# option or PGDATA environment variable, represented here as ConfigDir.
#data_directory = 'ConfigDir' # use data in another directory
# (change requires restart)
# 指定用于数据存储的目录。
此参数只能在服务器启动时设置。
#hba_file = 'ConfigDir/pg_hba.conf' # host-based authentication file
# (change requires restart)
# 指定基于主机的身份验证
的配置文件(通常称为 pg_hba.conf)。
# 此参数只能在服务器启动
时设置。
#ident_file = 'ConfigDir/pg_ident.conf' # ident configuration file
# (change requires restart)
# 指定用户名映射的配置文
评论