configs for postgresql restart and postgresql reload

-- configs requiring postgresql restart
select name, setting, context
  from pg_settings where context = ‘postmaster‘;

postgres=# select name, setting, context
postgres-# from pg_settings where context = ‘postmaster‘;
name | setting | context
-------------------------------------+-----------------------------------------------+------------
allow_system_table_mods | off | postmaster
archive_mode | off | postmaster
autovacuum_freeze_max_age | 200000000 | postmaster
autovacuum_max_workers | 3 | postmaster
autovacuum_multixact_freeze_max_age | 400000000 | postmaster
bonjour | off | postmaster
bonjour_name | | postmaster
cluster_name | | postmaster
config_file | /usr/local/pgtest/bin/../data/postgresql.conf | postmaster
data_directory | /usr/local/pgtest/bin/../data | postmaster
dynamic_shared_memory_type | posix | postmaster
event_source | PostgreSQL | postmaster
external_pid_file | | postmaster
hba_file | /usr/local/pgtest/bin/../data/pg_hba.conf | postmaster
hot_standby | off | postmaster
huge_pages | try | postmaster
ident_file | /usr/local/pgtest/bin/../data/pg_ident.conf | postmaster
listen_addresses | * | postmaster
logging_collector | off | postmaster
max_connections | 100 | postmaster
max_files_per_process | 1000 | postmaster
max_locks_per_transaction | 64 | postmaster
max_pred_locks_per_transaction | 64 | postmaster
max_prepared_transactions | 0 | postmaster
max_replication_slots | 0 | postmaster
max_wal_senders | 0 | postmaster
max_worker_processes | 8 | postmaster
port | 5432 | postmaster
shared_buffers | 16384 | postmaster
shared_preload_libraries | | postmaster
ssl | off | postmaster
ssl_ca_file | | postmaster
ssl_cert_file | server.crt | postmaster
ssl_ciphers | none | postmaster
ssl_crl_file | | postmaster
ssl_ecdh_curve | none | postmaster
ssl_key_file | server.key | postmaster
ssl_prefer_server_ciphers | on | postmaster
superuser_reserved_connections | 3 | postmaster
track_activity_query_size | 1024 | postmaster
track_commit_timestamp | off | postmaster
unix_socket_directories | /tmp | postmaster
unix_socket_group | | postmaster
unix_socket_permissions | 0777 | postmaster
wal_buffers | 512 | postmaster
wal_level | minimal | postmaster
wal_log_hints | off | postmaster

-- configs requiring postgresql reload
select name, setting, context
 from pg_settings where context = ‘sighup‘;

postgres=# select name, setting, context
postgres-# from pg_settings where context = ‘sighup‘;
name | setting | context
---------------------------------+--------------------------------+---------
archive_command | (disabled) | sighup
archive_timeout | 0 | sighup
authentication_timeout | 60 | sighup
autovacuum | on | sighup
autovacuum_analyze_scale_factor | 0.1 | sighup
autovacuum_analyze_threshold | 50 | sighup
autovacuum_naptime | 60 | sighup
autovacuum_vacuum_cost_delay | 20 | sighup
autovacuum_vacuum_cost_limit | -1 | sighup
autovacuum_vacuum_scale_factor | 0.2 | sighup
autovacuum_vacuum_threshold | 50 | sighup
autovacuum_work_mem | -1 | sighup
bgwriter_delay | 200 | sighup
bgwriter_lru_maxpages | 100 | sighup
bgwriter_lru_multiplier | 2 | sighup
checkpoint_completion_target | 0.5 | sighup
checkpoint_timeout | 300 | sighup
checkpoint_warning | 30 | sighup
db_user_namespace | off | sighup
fsync | on | sighup
full_page_writes | on | sighup
hot_standby_feedback | off | sighup
krb_caseins_users | off | sighup
krb_server_keyfile | | sighup
log_autovacuum_min_duration | -1 | sighup
log_checkpoints | off | sighup
log_destination | stderr | sighup
log_directory | pg_log | sighup
log_file_mode | 0600 | sighup
log_filename | postgresql-%Y-%m-%d_%H%M%S.log | sighup
log_hostname | off | sighup
log_line_prefix | | sighup
log_rotation_age | 1440 | sighup
log_rotation_size | 10240 | sighup
log_timezone | US/Pacific | sighup
log_truncate_on_rotation | off | sighup
max_standby_archive_delay | 30000 | sighup
max_standby_streaming_delay | 30000 | sighup
max_wal_size | 64 | sighup
min_wal_size | 5 | sighup
pre_auth_delay | 0 | sighup
restart_after_crash | on | sighup
stats_temp_directory | pg_stat_tmp | sighup
synchronous_standby_names | | sighup
syslog_facility | local0 | sighup
syslog_ident | postgres | sighup
trace_recovery_messages | log | sighup
vacuum_defer_cleanup_age | 0 | sighup
wal_keep_segments | 0 | sighup
wal_receiver_status_interval | 10 | sighup
wal_receiver_timeout | 60000 | sighup
wal_retrieve_retry_interval | 5000 | sighup
wal_sender_timeout | 60000 | sighup
wal_sync_method | fdatasync | sighup
wal_writer_delay | 200 | sighup

时间: 2024-10-28 15:50:02

configs for postgresql restart and postgresql reload的相关文章

mac默认安装postgresql, 如何让postgresql可以远程访问

mac默认安装postgresql, 如何让postgresql可以远程访问 mac默认的postgresql目录的存放路径是/usr/local/var/postgres/在该目录下,修改两个文件,一个是postgresql.conf, 一个是pg_hba.conf,最后是重启 修改postresql.conf listen_addresses = '*' # 修改这里的配置允许任意地址的链接postgresql 修改pg_hba.conf host all all 0.0.0.0/0 tru

安装PostgreSQL和卸载PostgreSQL

安装PostgreSQL sudo apt-get update sudo apt-get install postgresql postgresql-contrib 卸载PostgreSQL sudo apt-get purge 'postgresql-*' sudo apt-get autoremove 'postgresql-*'

PostgreSQL入门,PostgreSQL和mysql

PostgreSQL被誉为"世界上功能最强大的开源数据库",是以加州大学伯克利分校计算机系开发的POSTGRES 4.2为基础的对象关系型数据库管理系统. PostgreSQL支持大部分 SQL标准并且提供了许多其他现代特性:复杂查询.外键.触发器.视图.事务完整性.MVCC.同样,PostgreSQL 可以用许多方法扩展,比如,通过增加新的数据类型.函数.操作符.聚集函数.索引. 开发者可以免费使用.修改和分发 PostgreSQL,不管是私用.商用.还是学术研究使用. Postgr

[PostgreSQL] 图解安装 PostgreSQL

图解安装 PostgreSQL [博主]反骨仔 [原文地址]http://www.cnblogs.com/liqingwen/p/5894462.html 序 园友的一篇<Asp.Net Core 项目实战之权限管理系统(3) 通过EntityFramework Core使用PostgreSQL>需要用到 PostgreSQL 数据库,并考虑到自己后续的学习也涉及到该 PostgreSQL 数据库,这里只是简单演示下安装与使用,仅供参考. 目录 简介 安装前需要知道的几件事 开始安装 安装后的

PosttgreSQL快速入门:PostgreSQL的安装和配置

一.在CentOS上安装PostgreSQL数据库 下面我们就以CentOS系统为例,给大家讲解一下PostgreSQL的安装过程. 1.使用yum安装postgresql [[email protected] ~]$ sudo yum install postgresql-server.x86_64 Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Install Process Loading mir

UbuntuでPostgreSQLをインストールからリモートアクセスまでの手順

PostgreSQLサーバの立ち上げに少しハマりましたので.メモしておきます. OS: Ubuntu14.04 LTS インストール 最初はPostgreSQLをインストールします.普通にapt-getコマンドを使えばインストールできますので.特筆すべきことはありません. $ sudo apt-get update $ sudo apt-get install -y postgresql-9.3 インストールが出来ましたら./etc/init.d/に起動用のスクリプトが作成されるはずです.sta

PHP连接PostgreSQL

yum install php-pgsql 在开始使用PHP PostgreSQL接口,打开pg_hba.conf文件(在PostgreSQL安装目录),并添加下面一行: # IPv4 local connections: host    all         all         127.0.0.1/32          md5 使用start/restart启动Postgres服务器,它没有运行使用下面的命令: [[email protected]]# service postgres

service postgresql initdb [FAILED]

一.场景 安装postgresql时可能因为配置有问题[后来定位问题是我把pg_hba.conf中local一栏的ident修改为peer就会出错]导致服务起不来,报错如下: [[email protected] ~]# /etc/init.d/postgresql restart Stopping postgresql service: [ OK ] Starting postgresql service: [FAILED] 所以我使用yum remove和yum install重新安装pos

1.安装CDH5.12.x

安装方式安装前准备安装步骤安装过程修改/etc/hosts设置ssh 互信修改linux 系统设置安装JDK1.8安装python2.7安装mysql/postgreysql数据库安装ntp设置本地yum源下载CDH parcels包安装CM使用yum安装CM安装agent进入CDH添加节点使用CM添加节点手动安装agent远程yum源安装节点服务安装中出现的问题 安装方式 CDH有三种安装方式 parcels 二进制程序包,包含了CDH组件中的依赖\版本等信息,可以方便的切换CDH版本,CM调