Skip to content

Commit

Permalink
Merge pull request #22 from cloudscale-ch/denis/postgresql
Browse files Browse the repository at this point in the history
Add support for PostgreSQL 14/15
  • Loading branch information
href authored Apr 30, 2024
2 parents dfd6553 + 9971624 commit f5ec9a2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ ssl_prefer_server_ciphers = {{ item.ssl_prefer_server_ciphers | d('on') }}
ssl_ecdh_curve = {{ item.ssl_ecdh_curve | d('prime256v1') }}
{% endif %}

{% if (item.version | d(postgresql_server__version)) is version_compare('14','>=') %}
password_encryption = {{ item.password_encryption | d('scram-sha-256') }}
{% else %}
password_encryption = {{ item.password_encryption | d('on') }}
{% endif %}
db_user_namespace = {{ item.db_user_namespace | d('off') }}


Expand Down Expand Up @@ -371,7 +375,8 @@ track_io_timing = {{ item.track_io_timing | d('off') }}
track_functions = {{ item.track_functions | d('none') }}
track_activity_query_size = {{ item.track_activity_query_size | d('1024') }}
update_process_title = {{ item.update_process_title | d('on') }}
{% if (item.version | d(postgresql_server__version)) is version_compare('9.1','>') %}
{% if (item.version | d(postgresql_server__version)) is version_compare('15','>=') %}
{% elif (item.version | d(postgresql_server__version)) is version_compare('9.1','>') %}
stats_temp_directory = '{{ item.stats_temp_directory | d("/var/run/postgresql/" + (item.version | d(postgresql_server__version)) + "-" + item.name + ".pg_stat_tmp") }}'
{% else %}
stats_temp_directory = '{{ item.stats_temp_directory | d("pg_stat_tmp") }}'
Expand Down

0 comments on commit f5ec9a2

Please sign in to comment.