Skip to content

Commit

Permalink
[postgresql_server] Support postgresql 15
Browse files Browse the repository at this point in the history
The stats_temp_directory entry was obsoleted with version 15.

(cherry picked from commit 4f2efcd)
  • Loading branch information
mbehrle authored and href committed Apr 30, 2024
1 parent 7d2dbb2 commit 9971624
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -375,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 9971624

Please sign in to comment.