diff --git a/templates/postgresql.conf.j2 b/templates/postgresql.conf.j2 index 8bbe31d..b17a3cb 100644 --- a/templates/postgresql.conf.j2 +++ b/templates/postgresql.conf.j2 @@ -39,15 +39,15 @@ # The default values of these variables are driven from the -D command-line # option or PGDATA environment variable, represented here as ConfigDir. -data_directory = '/var/lib/postgresql/13/main' # use data in another directory +data_directory = '/var/lib/postgresql/{{ pg_version }}/main' # use data in another directory # (change requires restart) -hba_file = '/etc/postgresql/13/main/pg_hba.conf' # host-based authentication file +hba_file = '/etc/postgresql/{{ pg_version }}/main/pg_hba.conf' # host-based authentication file # (change requires restart) -ident_file = '/etc/postgresql/13/main/pg_ident.conf' # ident configuration file +ident_file = '/etc/postgresql/{{ pg_version }}/main/pg_ident.conf' # ident configuration file # (change requires restart) # If external_pid_file is not explicitly set, no extra PID file is written. -external_pid_file = '/var/run/postgresql/13-main.pid' # write an extra PID file +external_pid_file = '/var/run/postgresql/{{ pg_version }}-main.pid' # write an extra PID file # (change requires restart) @@ -567,7 +567,7 @@ log_timezone = 'Etc/UTC' # PROCESS TITLE #------------------------------------------------------------------------------ -cluster_name = '13/main' # added to process titles if nonempty +cluster_name = '{{ pg_version }}/main' # added to process titles if nonempty # (change requires restart) #update_process_title = on @@ -583,7 +583,7 @@ cluster_name = '13/main' # added to process titles if nonempty #track_io_timing = off #track_functions = none # none, pl, all #track_activity_query_size = 1024 # (change requires restart) -stats_temp_directory = '/var/run/postgresql/13-main.pg_stat_tmp' +stats_temp_directory = '/var/run/postgresql/{{ pg_version }}-main.pg_stat_tmp' # - Monitoring -