1、配置文件
2、查看配置文件的位置:
1
2
3
4
5
6
7
8
|
postgres=
#selectname,settingfrompg_settingswherecategory='FileLocations';
name|setting
-------------------+-----------------------------------------
data_directory|
/data
external_pid_file|
hba_file|
/data/pg_hba
.conf
ident_file|
/data/pg_ident
.conf
|
3、postgresql.conf
1
2
3
4
5
6
7
8
9
10
|
----------------------+------------+------+---------+-----------+-----------
listen_addresses|postmaster||*|localhost|*
max_connections|postmaster||100|100|100
shared_buffers|postmaster|8kB|16384|1024|16384
effective_cache_size|user|8kB|524288|524288|524288
maintenance_work_mem|user|kB|65536|65536|65536
work_mem|user|kB|4096|4096|4096
(6rows)
|
1
|
Altersystem
set
work_mem=8192;
|