設定・環境 - RDB(PostgreSQL)

最終更新日: 2026-08-25

TOP(About this memo)) > 一覧(RDB) > 設定・環境(PostgreSQL)

設定・環境(PostgreSQL)

ドキュメント

設定確認

show all
select name, setting, unit from pg_settings
select name, setting, unit from pg_settings where name = 'lock_timeout'

タイムゾーン

show timezone;

lock_timeout

statement_timeout

idle_in_transaction_session_timeout, idle_session_timeout

クライアント・サーバモデル

同時接続

select * from pg_stat_activity
SHOW max_connections;

max_connections

増やしすぎるとメモリ不足によるスワップが起きる可能性もある。