#RISOTTO: file://usr/share/pgsql/postgresql.conf.sample #GNUNUX: encoding is present in source so try to convert it #encoding: utf8 # ----------------------------- # PostgreSQL configuration file # ----------------------------- # # This file consists of lines of the form: # # name = value # # (The "=" is optional.) Whitespace may be used. Comments are introduced with # "#" anywhere on a line. The complete list of parameter names and allowed # values can be found in the PostgreSQL documentation. # # The commented-out settings shown in this file represent the default values. # Re-commenting a setting is NOT sufficient to revert it to the default value; # you need to reload the server. # # This file is read on server startup and when the server receives a SIGHUP # signal. If you edit the file on a running system, you have to SIGHUP the # server for the changes to take effect, run "pg_ctl reload", or execute # "SELECT pg_reload_conf()". Some parameters, which are marked below, # require a server shutdown and restart to take effect. # # Any parameter can also be given as a command-line option to the server, e.g., # "postgres -c log_connections=on". Some parameters can be changed at run time # with the "SET" SQL command. # # Memory units: B = bytes Time units: us = microseconds # kB = kilobytes ms = milliseconds # MB = megabytes s = seconds # GB = gigabytes min = minutes # TB = terabytes h = hours # d = days #------------------------------------------------------------------------------ # FILE LOCATIONS #------------------------------------------------------------------------------ # The default values of these variables are driven from the -D command-line # option or PGDATA environment variable, represented here as ConfigDir. #data_directory = 'ConfigDir' # use data in another directory # (change requires restart) #hba_file = 'ConfigDir/pg_hba.conf' # host-based authentication file # (change requires restart) #>GNUNUX hba_file = '/etc/postgresql/pg_hba.conf' #GNUNUX ident_file = '/etc/postgresql/pg_ident.conf' #GNUNUX listen_addresses = '*' #GNUNUX max_connections = {{ general.postgresql.pg_max_connections }} #GNUNUX unix_socket_directories = '/var/run/postgresql' #GNUNUX authentication_timeout = {{ general.postgresql.pg_authentication_timeout }}s #GNUNUX ssl = true # (change requires restart) ssl_cert_file = '{{ general.tls_cert_directory }}/postgresql.crt' # (change requires restart) ssl_key_file = '{{ general.tls_key_directory }}/postgresql.key' # (change requires restart) ssl_ca_file = '{{ general.tls_ca_directory }}/PostgreSQL.crt' #GNUNUX shared_buffers = {{ general.postgresql.pg_shared_buffers }}{{ general.postgresql.pg_shared_buffers_unit }} #GNUNUX work_mem = {{ general.postgresql.pg_work_mem }}{{ general.postgresql.pg_work_mem_unit }} # min 64kB maintenance_work_mem = {{ general.postgresql.pg_maintenance_work_mem }}{{ general.postgresql.pg_maintenance_work_mem_unit }} # min 1MB #GNUNUX wal_buffers = {{ general.postgresql.pg_wal_buffers }} #GNUNUX max_wal_size = {{ general.postgresql.pg_max_wal_size }}{{ general.postgresql.pg_max_wal_size_unit }} min_wal_size = 80MB #GNUNUX effective_cache_size = {{ general.postgresql.pg_effective_cache_size }}{{ general.postgresql.pg_effective_cache_size_unit }} #GNUNUX log_destination = 'syslog' # 0 logs only # statements running at least this number # of milliseconds #log_min_duration_sample = -1 # -1 is disabled, 0 logs a sample of statements # and their durations, > 0 logs only a sample of # statements running at least this number # of milliseconds; # sample fraction is determined by log_statement_sample_rate #log_statement_sample_rate = 1.0 # fraction of logged statements exceeding # log_min_duration_sample to be logged; # 1.0 logs all such statements, 0.0 never logs #log_transaction_sample_rate = 0.0 # fraction of transactions whose statements # are logged regardless of their duration; 1.0 logs all # statements from all transactions, 0.0 never logs # - What to Log - #debug_print_parse = off #debug_print_rewritten = off #debug_print_plan = off #debug_pretty_print = on #log_autovacuum_min_duration = -1 # log autovacuum activity; # -1 disables, 0 logs all actions and # their durations, > 0 logs only # actions running at least this number # of milliseconds. #log_checkpoints = off #log_connections = off #log_disconnections = off #log_duration = off #log_error_verbosity = default # terse, default, or verbose messages #log_hostname = off #log_line_prefix = '%m [%p] ' # special values: # %a = application name # %u = user name # %d = database name # %r = remote host and port # %h = remote host # %b = backend type # %p = process ID # %P = process ID of parallel group leader # %t = timestamp without milliseconds # %m = timestamp with milliseconds # %n = timestamp with milliseconds (as a Unix epoch) # %Q = query ID (0 if none or not computed) # %i = command tag # %e = SQL state # %c = session ID # %l = session line number # %s = session start timestamp # %v = virtual transaction ID # %x = transaction ID (0 if none) # %q = stop here in non-session # processes # %% = '%' # e.g. '<%u%%%d> ' #log_lock_waits = off # log lock waits >= deadlock_timeout #log_recovery_conflict_waits = off # log standby recovery conflict waits # >= deadlock_timeout #log_parameter_max_length = -1 # when logging statements, limit logged # bind-parameter values to N bytes; # -1 means print in full, 0 disables #log_parameter_max_length_on_error = 0 # when logging an error, limit logged # bind-parameter values to N bytes; # -1 means print in full, 0 disables #log_statement = 'none' # none, ddl, mod, all #log_replication_commands = off #log_temp_files = -1 # log temporary files equal or larger # than the specified size in kilobytes; # -1 disables, 0 logs all temp files #FIXME en dure ? #>GNUNUX #log_timezone = 'GMT' log_timezone = '{{ general.base.time_zone }}' #GNUNUX {% if pg_autovacuum %} autovacuum = on {% else %} autovacuum = off {% endif %} #GNUNUX datestyle = 'iso, dmy' #GNUNUX timezone = '{{ general.base.time_zone }}' #0 actually # selects precise output mode #client_encoding = sql_ascii # actually, defaults to database # encoding # These settings are initialized by initdb, but they can be changed. #lc_messages = 'C' # locale for system error message # strings #lc_monetary = 'C' # locale for monetary formatting #lc_numeric = 'C' # locale for number formatting #lc_time = 'C' # locale for time formatting #>GNUNUX #FIXME en dure ? lc_messages = 'fr_FR.UTF-8' lc_monetary = 'fr_FR.UTF-8' lc_numeric = 'fr_FR.UTF-8' lc_time = 'fr_FR.UTF-8' #GNUNUX #default_text_search_config = 'pg_catalog.french' default_text_search_config = 'pg_catalog.french' #