PostgreSQL9.x/設定
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
**設定 [#z9b31d74]
#contents
----
**初期パスワード設定 [#we6a33ae]
最初はpostgres(またはサービス起動ユーザ)が登録されている。
psql -h localhost -U postgres
初期状態ではpg_hba.confでtrustが指定されているので無条件...
postgres=# SELECT * FROM pg_user;
usename | usesysid | usecreatedb | usesuper | usecatup...
----------+----------+-------------+----------+---------...
postgres | 10 | t | t | t ...
パスワードなしなのでパスワードを設定する。
パスワードがない(NULL)の場合、常に認証失敗するので
trustから変更する前に設定すること。
postgres=# \password postgres
または
ALTER ROLE postgres WITH ENCRYPTED PASSWORD 'xxxxxxxx';
ENCRYPTED(md5で保存する)はpassword_encryptionがON(規定値...
前者推奨らしい( ´ω`)
**認証設定(pg_hba.conf) [#ed0b7e36]
接続元とユーザの許可・拒否を設定。
初期設定はMETHODがtrustなので適宜変更する。ウチではmd5を...
# TYPE DATABASE USER ADDRESS ...
# "local"はソケット接続
local all all ...
# IPv4のローカルループバック
host all all 127.0.0.1/32 ...
# IPv6のローカルループバック
host all all ::1/128 ...
# 外のホストからの接続
host all all 192.168.0.0/24 ...
host all all 172.16.0.0/12 ...
変更後はサービスをreloadする。~
reload後は先に設定したパスワードでログインする。
**本体設定(postgresql.conf) [#xe2fe4b7]
暫定。
#-------------------------------------------------------...
# ファイルの場所
#-------------------------------------------------------...
# 規定値は-Dオプションか環境変数PGDATAで指定した場所。
#data_directory = '/usr/local/pgsql/data' ...
#hba_file = '/usr/local/pgsql/data/pg_hba.conf' ...
#ident_file = '/usr/local/pgsql/data/pg_ident.conf' ...
# external_pid_fileに記述がなければPIDファイルは出力され...
#external_pid_file = '(none)' # PIDファイ...
#-------------------------------------------------------...
# 接続と認証
#-------------------------------------------------------...
# - 接続設定 -
listen_addresses = '*' # Lis...
# 規...
# '*'...
port = 5432 # ポ...
max_connections = 100 # 最...
# コ...
superuser_reserved_connections = 3 # ス...
unix_socket_directory = '/usr/local/pgsql/var/run' # 規...
unix_socket_group = 'postgres' # ソ...
unix_socket_permissions = 0777 # ソ...
#bonjour = off # Bonjour使わん...
#bonjour_name = '' # 規定値はホスト名
# - セキュリティと認証 -
authentication_timeout = 1min ...
ssl = off ...
ssl_ciphers = 'TLSv1:!aNULL:!eNULL:!EXP:!RC2:!DES:!IDEA:...
ssl_renegotiation_limit = 512MB ...
password_encryption = on ...
db_user_namespace = off ...
# Kerberos と GSSAPI
#krb_server_keyfile = ''
#krb_srvname = 'postgres' # Kerberosのみ
#krb_caseins_users = off
# - TCP KeepAlive -
# see "man 7 tcp" for details
#tcp_keepalives_idle = 0 # TCP_KEEPIDLEの...
#tcp_keepalives_interval = 0 # TCP_KEEPINTVL...
#tcp_keepalives_count = 0 # TCP_KEEPCNTの...
#-------------------------------------------------------...
# リソース(WALを除く)
#-------------------------------------------------------...
# - メモリ -
shared_buffers = 768MB # 共有バッファ(シ...
temp_buffers = 8MB # テンポラリバッ...
max_prepared_transactions = 0 # とりあえず0で無...
work_mem = 8MB # 複雑なクエリが...
maintenance_work_mem = 16MB # 保守クエリ用。A...
max_stack_depth = 2MB # とりあえず規定...
# - カーネルリソース -
max_files_per_process = 1000 # プロセスごとの...
shared_preload_libraries = '' # んー、Pythonと...
# - コストベースVacuum遅延 -
vacuum_cost_delay = 0ms # プロセススリー...
vacuum_cost_page_hit = 1 # キャッシュヒッ...
vacuum_cost_page_miss = 10 # キャッシュヒッ...
vacuum_cost_page_dirty = 20 # ダーティバッフ...
vacuum_cost_limit = 200 # スリープ発動す...
# - バックグラウンドライター -
bgwriter_delay = 200ms # ディスク書き込...
bgwriter_lru_maxpages = 100 # 一回で書き込む...
bgwriter_lru_multiplier = 2.0 # 次回用に確保す...
# - 非同期挙動 -
effective_io_concurrency = 1 # RAIDの玉数(ざっ...
#-------------------------------------------------------...
# WRITE AHEAD LOG
#-------------------------------------------------------...
# - 設定 -
wal_level = minimal # ひとまずminimal
fsync = on # ONで
synchronous_commit = on # ひとまずon
wal_sync_method = fdatasync # ひとまずfdatasy...
full_page_writes = on # ONで
wal_buffers = -1 # -1で(shared_buf...
wal_writer_delay = 200ms # WALが働く間隔
commit_delay = 0 # コミット時フラ...
# 待ってる間にコ...
# まとめてフラッ...
commit_siblings = 5 # commit_delayが...
# 満たない場合は...
# - チェックポイント -
checkpoint_segments = 8 # セグメントファ...
checkpoint_timeout = 5min # チェックポイン...
checkpoint_completion_target = 0.5 # 完了目標時間(ch...
# この時間中にチ...
checkpoint_warning = 30s # ファイルあふれ...
# 警告ログを出す...
# - アーカイブ -
archive_mode = off # アーカイブモード(WALを...
archive_command = '' # アーカイブするためのコ...
archive_timeout = 0 # 強制的にアーカイブする...
#-------------------------------------------------------...
# レプリケーション
#-------------------------------------------------------...
# - マスタサーバ -
# 以下の設定はスタンバイサーバでは無視される
#max_wal_senders = 0 # スタンバイからの最大接...
#wal_sender_delay = 1s # walsender cycle time, ...
#wal_keep_segments = 0 # in logfile segments, 1...
#vacuum_defer_cleanup_age = 0 # number of xacts by whi...
#replication_timeout = 60s # in milliseconds; 0 dis...
#synchronous_standby_names = '' # standby servers that p...
# comma-separated list o...
# from standby(s); '*' =...
# - スタンバイサーバ -
# 以下の設定はマスタサーバでは無視される
#hot_standby = off # "on" allows qu...
#max_standby_archive_delay = 30s # max delay befo...
# when reading W...
# -1 allows inde...
#max_standby_streaming_delay = 30s # max delay befo...
# when reading s...
# -1 allows inde...
#wal_receiver_status_interval = 10s # send replies a...
# 0 disables
#hot_standby_feedback = off # send info from...
# query conflicts
#-------------------------------------------------------...
# クエリチューニング
#-------------------------------------------------------...
# ひとまずすべて規定値で
# - プランナ手法設定 -
#enable_bitmapscan = on
#enable_hashagg = on
#enable_hashjoin = on
#enable_indexscan = on
#enable_material = on
#enable_mergejoin = on
#enable_nestloop = on
#enable_seqscan = on
#enable_sort = on
#enable_tidscan = on
# - プランナコスト定数 -
#seq_page_cost = 1.0 # measured on an...
#random_page_cost = 4.0 # same scale as ...
#cpu_tuple_cost = 0.01 # same scale as ...
#cpu_index_tuple_cost = 0.005 # same scale as ...
#cpu_operator_cost = 0.0025 # same scale as ...
#effective_cache_size = 128MB
# - 遺伝的クエリ最適化 -
#geqo = on
#geqo_threshold = 12
#geqo_effort = 5 # range 1-10
#geqo_pool_size = 0 # selects defaul...
#geqo_generations = 0 # selects defaul...
#geqo_selection_bias = 2.0 # range 1.5-2.0
#geqo_seed = 0.0 # range 0.0-1.0
# - プランナその他オプション -
#default_statistics_target = 100 # range 1-10000
#constraint_exclusion = partition # on, off, or pa...
#cursor_tuple_fraction = 0.1 # range 0.0-1.0
#from_collapse_limit = 8
#join_collapse_limit = 8 # 1 disables col...
# JOIN clauses
#-------------------------------------------------------...
# エラー出力とログ
#-------------------------------------------------------...
# - 出力場所 -
#log_destination = 'stderr' # エラーの出力先
# 以下、stderrのとき有効
#logging_collector = off # ONでファイルに...
# 以下、logging_collector=onのとき有効
#log_directory = 'pg_log' # 吐き先ディレク...
#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' ...
#log_file_mode = 0600 # ログファイルの...
#log_truncate_on_rotation = off # ONでローテーシ...
#log_rotation_age = 1d # 単位時間でロー...
#log_rotation_size = 10MB # 単位容量でロー...
# 以下、syslogのとき有効(syslog自体の設定も必要)
#syslog_facility = 'LOCAL0' # syslogファシリ...
#syslog_ident = 'postgres' # ident
#silent_mode = off # OFFで
# - いつ採る? -
#client_min_messages = notice # クライアントに...
#log_min_messages = warning # ログレベル
#log_min_error_statement = error # SQLを記録する...
#log_min_duration_statement = -1 # 指定時間以上か...
# 0ですべて記録...
# - なに採る? -
#debug_print_parse = off # 最終的な解析ツ...
#debug_print_rewritten = off # 問い合わせリラ...
#debug_print_plan = off # 実行計画
#debug_pretty_print = on # ONで↑を字下げ...
#log_checkpoints = off # チェックポイン...
#log_connections = off # 接続時のログ
#log_disconnections = off # 切断時のログ
#log_duration = off # 実行時間のログ
#log_error_verbosity = default # ログの冗長具合
#log_hostname = off # ONでホスト名を...
#log_line_prefix = '' # ログプレフィク...
#log_lock_waits = off # ONでdeadlock_t...
#log_statement = 'none' # 記録するSQLの...
#log_temp_files = -1 # 指定容量(kb)以...
# 0で全部、-1で...
#log_timezone = '' # ログのタイムゾ...
#-------------------------------------------------------...
# 実行時統計情報
#-------------------------------------------------------...
#ひとまずすべて規定値で
# - クエリ/インデックス情報コレクタ -
#track_activities = on
#track_counts = on
#track_functions = none # none, pl, all
#track_activity_query_size = 1024 # (change requir...
#update_process_title = on
#stats_temp_directory = 'pg_stat_tmp'
# - 統計情報モニタリング -
#log_parser_stats = off
#log_planner_stats = off
#log_executor_stats = off
#log_statement_stats = off
#-------------------------------------------------------...
# AUTOVACUUMパラメタ
#-------------------------------------------------------...
#autovacuum = on # ONでAUTOVACUUM...
#log_autovacuum_min_duration = -1 # 指定ms以上のVA...
#autovacuum_max_workers = 3 # AUTOVACUUMの最...
#autovacuum_naptime = 1min # 実行間隔
#autovacuum_vacuum_threshold = 50 # AUTOVACUUM実行...
#autovacuum_analyze_threshold = 50 # ANALYZE実行ト...
#autovacuum_vacuum_scale_factor = 0.2 # AUTOVACUUM実行...
#autovacuum_analyze_scale_factor = 0.1 # ANALYZE実行ト...
# autovacuum_ana...
# を越えたらAUTO...
#autovacuum_freeze_max_age = 200000000 # XID周回前の指...
#autovacuum_vacuum_cost_delay = 20ms # コストが越えた...
#autovacuum_vacuum_cost_limit = -1 # コスト制限。-1...
#-------------------------------------------------------...
# クライアント接続規定値
#-------------------------------------------------------...
# - ステートメント挙動 -
#search_path = '"$user",public' # 探すスキーマ名
#default_tablespace = '' # テーブル名規定値
#temp_tablespaces = '' # 一時テーブル名...
#check_function_bodies = on # 常にON
#default_transaction_isolation = 'read committed' # トラ...
#default_transaction_read_only = off # ONで規定値を読...
#default_transaction_deferrable = off #
#session_replication_role = 'origin' #
#statement_timeout = 0 #
#vacuum_freeze_min_age = 50000000 #
#vacuum_freeze_table_age = 150000000 #
#bytea_output = 'hex' # bytea型の書式...
#xmlbinary = 'base64' # XMLにするとき...
#xmloption = 'content' # XMLにするとき...
# - ロケールと書式 -
datestyle = 'iso, ymd'
#intervalstyle = 'postgres'
#timezone = '(defaults to server environment setting)'
#timezone_abbreviations = 'Default' #
#extra_float_digits = 0 #
client_encoding = UTF-8 # クライアントの...
lc_messages = 'ja_JP.UTF-8' # メッセージロケ...
lc_monetary = 'ja_JP.UTF-8' # 通貨ロケール
lc_numeric = 'ja_JP.UTF-8' # 数字ロケール
lc_time = 'ja_JP.UTF-8' # 時間ロケール
# 全文検索規定値
default_text_search_config = 'pg_catalog.simple'
# - その他規定値 -
#dynamic_library_path = '$libdir'
#local_preload_libraries = ''
#-------------------------------------------------------...
# ロック管理
#-------------------------------------------------------...
#deadlock_timeout = 1s
#max_locks_per_transaction = 64 # min 10
# Note: Each lock table slot uses ~270 bytes of shared ...
# max_locks_per_transaction * (max_connections + max_pre...
# lock table slots.
#max_pred_locks_per_transaction = 64 # min 10
#-------------------------------------------------------...
# バージョン/プラットフォーム互換
#-------------------------------------------------------...
# - 前のPostgreSQL -
#array_nulls = on
#backslash_quote = safe_encoding # on, off, or sa...
#default_with_oids = off
#escape_string_warning = on
#lo_compat_privileges = off
#quote_all_identifiers = off
#sql_inheritance = on
#standard_conforming_strings = on
#synchronize_seqscans = on
# - その他 -
#transform_null_equals = off
#-------------------------------------------------------...
# エラー取扱
#-------------------------------------------------------...
#exit_on_error = off # termin...
#restart_after_crash = on # reinit...
#-------------------------------------------------------...
# カスタマイズオプション
#-------------------------------------------------------...
#custom_variable_classes = '' # list of custom...
終了行:
**設定 [#z9b31d74]
#contents
----
**初期パスワード設定 [#we6a33ae]
最初はpostgres(またはサービス起動ユーザ)が登録されている。
psql -h localhost -U postgres
初期状態ではpg_hba.confでtrustが指定されているので無条件...
postgres=# SELECT * FROM pg_user;
usename | usesysid | usecreatedb | usesuper | usecatup...
----------+----------+-------------+----------+---------...
postgres | 10 | t | t | t ...
パスワードなしなのでパスワードを設定する。
パスワードがない(NULL)の場合、常に認証失敗するので
trustから変更する前に設定すること。
postgres=# \password postgres
または
ALTER ROLE postgres WITH ENCRYPTED PASSWORD 'xxxxxxxx';
ENCRYPTED(md5で保存する)はpassword_encryptionがON(規定値...
前者推奨らしい( ´ω`)
**認証設定(pg_hba.conf) [#ed0b7e36]
接続元とユーザの許可・拒否を設定。
初期設定はMETHODがtrustなので適宜変更する。ウチではmd5を...
# TYPE DATABASE USER ADDRESS ...
# "local"はソケット接続
local all all ...
# IPv4のローカルループバック
host all all 127.0.0.1/32 ...
# IPv6のローカルループバック
host all all ::1/128 ...
# 外のホストからの接続
host all all 192.168.0.0/24 ...
host all all 172.16.0.0/12 ...
変更後はサービスをreloadする。~
reload後は先に設定したパスワードでログインする。
**本体設定(postgresql.conf) [#xe2fe4b7]
暫定。
#-------------------------------------------------------...
# ファイルの場所
#-------------------------------------------------------...
# 規定値は-Dオプションか環境変数PGDATAで指定した場所。
#data_directory = '/usr/local/pgsql/data' ...
#hba_file = '/usr/local/pgsql/data/pg_hba.conf' ...
#ident_file = '/usr/local/pgsql/data/pg_ident.conf' ...
# external_pid_fileに記述がなければPIDファイルは出力され...
#external_pid_file = '(none)' # PIDファイ...
#-------------------------------------------------------...
# 接続と認証
#-------------------------------------------------------...
# - 接続設定 -
listen_addresses = '*' # Lis...
# 規...
# '*'...
port = 5432 # ポ...
max_connections = 100 # 最...
# コ...
superuser_reserved_connections = 3 # ス...
unix_socket_directory = '/usr/local/pgsql/var/run' # 規...
unix_socket_group = 'postgres' # ソ...
unix_socket_permissions = 0777 # ソ...
#bonjour = off # Bonjour使わん...
#bonjour_name = '' # 規定値はホスト名
# - セキュリティと認証 -
authentication_timeout = 1min ...
ssl = off ...
ssl_ciphers = 'TLSv1:!aNULL:!eNULL:!EXP:!RC2:!DES:!IDEA:...
ssl_renegotiation_limit = 512MB ...
password_encryption = on ...
db_user_namespace = off ...
# Kerberos と GSSAPI
#krb_server_keyfile = ''
#krb_srvname = 'postgres' # Kerberosのみ
#krb_caseins_users = off
# - TCP KeepAlive -
# see "man 7 tcp" for details
#tcp_keepalives_idle = 0 # TCP_KEEPIDLEの...
#tcp_keepalives_interval = 0 # TCP_KEEPINTVL...
#tcp_keepalives_count = 0 # TCP_KEEPCNTの...
#-------------------------------------------------------...
# リソース(WALを除く)
#-------------------------------------------------------...
# - メモリ -
shared_buffers = 768MB # 共有バッファ(シ...
temp_buffers = 8MB # テンポラリバッ...
max_prepared_transactions = 0 # とりあえず0で無...
work_mem = 8MB # 複雑なクエリが...
maintenance_work_mem = 16MB # 保守クエリ用。A...
max_stack_depth = 2MB # とりあえず規定...
# - カーネルリソース -
max_files_per_process = 1000 # プロセスごとの...
shared_preload_libraries = '' # んー、Pythonと...
# - コストベースVacuum遅延 -
vacuum_cost_delay = 0ms # プロセススリー...
vacuum_cost_page_hit = 1 # キャッシュヒッ...
vacuum_cost_page_miss = 10 # キャッシュヒッ...
vacuum_cost_page_dirty = 20 # ダーティバッフ...
vacuum_cost_limit = 200 # スリープ発動す...
# - バックグラウンドライター -
bgwriter_delay = 200ms # ディスク書き込...
bgwriter_lru_maxpages = 100 # 一回で書き込む...
bgwriter_lru_multiplier = 2.0 # 次回用に確保す...
# - 非同期挙動 -
effective_io_concurrency = 1 # RAIDの玉数(ざっ...
#-------------------------------------------------------...
# WRITE AHEAD LOG
#-------------------------------------------------------...
# - 設定 -
wal_level = minimal # ひとまずminimal
fsync = on # ONで
synchronous_commit = on # ひとまずon
wal_sync_method = fdatasync # ひとまずfdatasy...
full_page_writes = on # ONで
wal_buffers = -1 # -1で(shared_buf...
wal_writer_delay = 200ms # WALが働く間隔
commit_delay = 0 # コミット時フラ...
# 待ってる間にコ...
# まとめてフラッ...
commit_siblings = 5 # commit_delayが...
# 満たない場合は...
# - チェックポイント -
checkpoint_segments = 8 # セグメントファ...
checkpoint_timeout = 5min # チェックポイン...
checkpoint_completion_target = 0.5 # 完了目標時間(ch...
# この時間中にチ...
checkpoint_warning = 30s # ファイルあふれ...
# 警告ログを出す...
# - アーカイブ -
archive_mode = off # アーカイブモード(WALを...
archive_command = '' # アーカイブするためのコ...
archive_timeout = 0 # 強制的にアーカイブする...
#-------------------------------------------------------...
# レプリケーション
#-------------------------------------------------------...
# - マスタサーバ -
# 以下の設定はスタンバイサーバでは無視される
#max_wal_senders = 0 # スタンバイからの最大接...
#wal_sender_delay = 1s # walsender cycle time, ...
#wal_keep_segments = 0 # in logfile segments, 1...
#vacuum_defer_cleanup_age = 0 # number of xacts by whi...
#replication_timeout = 60s # in milliseconds; 0 dis...
#synchronous_standby_names = '' # standby servers that p...
# comma-separated list o...
# from standby(s); '*' =...
# - スタンバイサーバ -
# 以下の設定はマスタサーバでは無視される
#hot_standby = off # "on" allows qu...
#max_standby_archive_delay = 30s # max delay befo...
# when reading W...
# -1 allows inde...
#max_standby_streaming_delay = 30s # max delay befo...
# when reading s...
# -1 allows inde...
#wal_receiver_status_interval = 10s # send replies a...
# 0 disables
#hot_standby_feedback = off # send info from...
# query conflicts
#-------------------------------------------------------...
# クエリチューニング
#-------------------------------------------------------...
# ひとまずすべて規定値で
# - プランナ手法設定 -
#enable_bitmapscan = on
#enable_hashagg = on
#enable_hashjoin = on
#enable_indexscan = on
#enable_material = on
#enable_mergejoin = on
#enable_nestloop = on
#enable_seqscan = on
#enable_sort = on
#enable_tidscan = on
# - プランナコスト定数 -
#seq_page_cost = 1.0 # measured on an...
#random_page_cost = 4.0 # same scale as ...
#cpu_tuple_cost = 0.01 # same scale as ...
#cpu_index_tuple_cost = 0.005 # same scale as ...
#cpu_operator_cost = 0.0025 # same scale as ...
#effective_cache_size = 128MB
# - 遺伝的クエリ最適化 -
#geqo = on
#geqo_threshold = 12
#geqo_effort = 5 # range 1-10
#geqo_pool_size = 0 # selects defaul...
#geqo_generations = 0 # selects defaul...
#geqo_selection_bias = 2.0 # range 1.5-2.0
#geqo_seed = 0.0 # range 0.0-1.0
# - プランナその他オプション -
#default_statistics_target = 100 # range 1-10000
#constraint_exclusion = partition # on, off, or pa...
#cursor_tuple_fraction = 0.1 # range 0.0-1.0
#from_collapse_limit = 8
#join_collapse_limit = 8 # 1 disables col...
# JOIN clauses
#-------------------------------------------------------...
# エラー出力とログ
#-------------------------------------------------------...
# - 出力場所 -
#log_destination = 'stderr' # エラーの出力先
# 以下、stderrのとき有効
#logging_collector = off # ONでファイルに...
# 以下、logging_collector=onのとき有効
#log_directory = 'pg_log' # 吐き先ディレク...
#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' ...
#log_file_mode = 0600 # ログファイルの...
#log_truncate_on_rotation = off # ONでローテーシ...
#log_rotation_age = 1d # 単位時間でロー...
#log_rotation_size = 10MB # 単位容量でロー...
# 以下、syslogのとき有効(syslog自体の設定も必要)
#syslog_facility = 'LOCAL0' # syslogファシリ...
#syslog_ident = 'postgres' # ident
#silent_mode = off # OFFで
# - いつ採る? -
#client_min_messages = notice # クライアントに...
#log_min_messages = warning # ログレベル
#log_min_error_statement = error # SQLを記録する...
#log_min_duration_statement = -1 # 指定時間以上か...
# 0ですべて記録...
# - なに採る? -
#debug_print_parse = off # 最終的な解析ツ...
#debug_print_rewritten = off # 問い合わせリラ...
#debug_print_plan = off # 実行計画
#debug_pretty_print = on # ONで↑を字下げ...
#log_checkpoints = off # チェックポイン...
#log_connections = off # 接続時のログ
#log_disconnections = off # 切断時のログ
#log_duration = off # 実行時間のログ
#log_error_verbosity = default # ログの冗長具合
#log_hostname = off # ONでホスト名を...
#log_line_prefix = '' # ログプレフィク...
#log_lock_waits = off # ONでdeadlock_t...
#log_statement = 'none' # 記録するSQLの...
#log_temp_files = -1 # 指定容量(kb)以...
# 0で全部、-1で...
#log_timezone = '' # ログのタイムゾ...
#-------------------------------------------------------...
# 実行時統計情報
#-------------------------------------------------------...
#ひとまずすべて規定値で
# - クエリ/インデックス情報コレクタ -
#track_activities = on
#track_counts = on
#track_functions = none # none, pl, all
#track_activity_query_size = 1024 # (change requir...
#update_process_title = on
#stats_temp_directory = 'pg_stat_tmp'
# - 統計情報モニタリング -
#log_parser_stats = off
#log_planner_stats = off
#log_executor_stats = off
#log_statement_stats = off
#-------------------------------------------------------...
# AUTOVACUUMパラメタ
#-------------------------------------------------------...
#autovacuum = on # ONでAUTOVACUUM...
#log_autovacuum_min_duration = -1 # 指定ms以上のVA...
#autovacuum_max_workers = 3 # AUTOVACUUMの最...
#autovacuum_naptime = 1min # 実行間隔
#autovacuum_vacuum_threshold = 50 # AUTOVACUUM実行...
#autovacuum_analyze_threshold = 50 # ANALYZE実行ト...
#autovacuum_vacuum_scale_factor = 0.2 # AUTOVACUUM実行...
#autovacuum_analyze_scale_factor = 0.1 # ANALYZE実行ト...
# autovacuum_ana...
# を越えたらAUTO...
#autovacuum_freeze_max_age = 200000000 # XID周回前の指...
#autovacuum_vacuum_cost_delay = 20ms # コストが越えた...
#autovacuum_vacuum_cost_limit = -1 # コスト制限。-1...
#-------------------------------------------------------...
# クライアント接続規定値
#-------------------------------------------------------...
# - ステートメント挙動 -
#search_path = '"$user",public' # 探すスキーマ名
#default_tablespace = '' # テーブル名規定値
#temp_tablespaces = '' # 一時テーブル名...
#check_function_bodies = on # 常にON
#default_transaction_isolation = 'read committed' # トラ...
#default_transaction_read_only = off # ONで規定値を読...
#default_transaction_deferrable = off #
#session_replication_role = 'origin' #
#statement_timeout = 0 #
#vacuum_freeze_min_age = 50000000 #
#vacuum_freeze_table_age = 150000000 #
#bytea_output = 'hex' # bytea型の書式...
#xmlbinary = 'base64' # XMLにするとき...
#xmloption = 'content' # XMLにするとき...
# - ロケールと書式 -
datestyle = 'iso, ymd'
#intervalstyle = 'postgres'
#timezone = '(defaults to server environment setting)'
#timezone_abbreviations = 'Default' #
#extra_float_digits = 0 #
client_encoding = UTF-8 # クライアントの...
lc_messages = 'ja_JP.UTF-8' # メッセージロケ...
lc_monetary = 'ja_JP.UTF-8' # 通貨ロケール
lc_numeric = 'ja_JP.UTF-8' # 数字ロケール
lc_time = 'ja_JP.UTF-8' # 時間ロケール
# 全文検索規定値
default_text_search_config = 'pg_catalog.simple'
# - その他規定値 -
#dynamic_library_path = '$libdir'
#local_preload_libraries = ''
#-------------------------------------------------------...
# ロック管理
#-------------------------------------------------------...
#deadlock_timeout = 1s
#max_locks_per_transaction = 64 # min 10
# Note: Each lock table slot uses ~270 bytes of shared ...
# max_locks_per_transaction * (max_connections + max_pre...
# lock table slots.
#max_pred_locks_per_transaction = 64 # min 10
#-------------------------------------------------------...
# バージョン/プラットフォーム互換
#-------------------------------------------------------...
# - 前のPostgreSQL -
#array_nulls = on
#backslash_quote = safe_encoding # on, off, or sa...
#default_with_oids = off
#escape_string_warning = on
#lo_compat_privileges = off
#quote_all_identifiers = off
#sql_inheritance = on
#standard_conforming_strings = on
#synchronize_seqscans = on
# - その他 -
#transform_null_equals = off
#-------------------------------------------------------...
# エラー取扱
#-------------------------------------------------------...
#exit_on_error = off # termin...
#restart_after_crash = on # reinit...
#-------------------------------------------------------...
# カスタマイズオプション
#-------------------------------------------------------...
#custom_variable_classes = '' # list of custom...
ページ名: