Umístění
Umístění tohoto konfiguračního souboru na vašem systému zjistíte dotazem do pohledu (view) pg_settings.
SELECT setting FROM pg_settings WHERE name = 'config_file';
Popis
Soubor postgresql.conf je čten při startu serveru. Některé změny v nastavení v tomto souboru vyžadují reload, nekteré restart serveru. To zda je potřeba reload nebo restart poznáte podle sloupce context. Hodnota user znamená, že stačí reload. Pokud je hodnota postmaster, je třeba pro změny provést restart.
Sloupec unit určuje měrnou jednotku pro sloupce setting (současná hodnoty), boot_val (výchozí hodnoty) a reset_val (nová hodnota). Pokud se hodnoty ve sloupcích setting, boot_val a reset_val liší, je potřeba reload nebo reset.
SELECT name, short_desc, context, unit, setting, boot_val, reset_val
FROM pg_settings
WHERE name IN ('max_connections', 'shared_buffers', 'effective_cache_size', 'work_mem', 'maintenance_work_mem');
name | short_desc | context | unit | setting | boot_val | reset_val
----------------------+-----------------------------------------------------------------+------------+------+---------+----------+-----------
effective_cache_size | Sets the planner's assumption about the size of the disk cache. | user | 8kB | 524288 | 524288 | 524288
maintenance_work_mem | Sets the maximum memory to be used for maintenance operations. | user | kB | 65536 | 65536 | 65536
max_connections | Sets the maximum number of concurrent connections. | postmaster | | 100 | 100 | 100
shared_buffers | Sets the number of shared memory buffers used by the server. | postmaster | 8kB | 16384 | 1024 | 16384
work_mem | Sets the maximum memory to be used for query workspaces. | user | kB | 4096 | 4096 | 4096




