Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added PostgreSQL 14 support #527

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ An example how to include this role as a task:

#### Compatibility matrix

| Distribution / PostgreSQL | 9.6 | 10 | 11 | 12 | 13 |
| ------------------------- |:---:|:--:|:--:|:--:|:--:|
| CentOS 7.x | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| CentOS 8.x | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Debian 9.x | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Debian 10.x | :grey_question: | :grey_question: | :grey_question: | :grey_question: | :grey_question: |
| Ubuntu 16.04.x | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Ubuntu 18.04.x | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Ubuntu 20.04.x | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Fedora 33 | :grey_question: | :grey_question: | :grey_question: | :grey_question: | :grey_question: |
| Distribution / PostgreSQL | 9.6 | 10 | 11 | 12 | 13 | 14 |
| ------------------------- |:---:|:--:|:--:|:--:|:--:|:--:|
| CentOS 7.x | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| CentOS 8.x | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Debian 9.x | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Debian 10.x | :grey_question: | :grey_question: | :grey_question: | :grey_question: | :grey_question: | :grey_question: |
| Ubuntu 16.04.x | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Ubuntu 18.04.x | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Ubuntu 20.04.x | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Fedora 33 | :grey_question: | :grey_question: | :grey_question: | :grey_question: | :grey_question: | :grey_question: |

- :white_check_mark: - tested, works fine
- :warning: - Not for production use
Expand All @@ -77,7 +77,7 @@ An example how to include this role as a task:

```yaml
# Basic settings
postgresql_version: 13
postgresql_version: 14
postgresql_encoding: "UTF-8"
postgresql_locale: "en_US.UTF-8"
postgresql_ctype: "en_US.UTF-8"
Expand Down
16 changes: 16 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ postgresql_tcp_keepalives_idle: 0
postgresql_tcp_keepalives_interval: 0
postgresql_tcp_keepalives_count: 0
postgresql_tcp_user_timeout: 0 # (>= 12)
postgresql_connection_check_interval: 0
postgresql_huge_page_size: 0


#------------------------------------------------------------------------------
Expand Down Expand Up @@ -203,6 +205,7 @@ postgresql_dynamic_shared_memory_type: "posix" # the default is the first optio
# windows
# mmap
# use none to disable dynamic shared memory
postgresql_min_dynamic_shared_memory: 0MB


# - Disk -
Expand Down Expand Up @@ -404,12 +407,15 @@ postgresql_max_sync_workers_per_subscription: 2 # (>= 10) taken from max_logical

# - Planner Method Configuration -

postgresql_enable_async_append: on # (>= 14)
postgresql_enable_bitmapscan: on
postgresql_enable_gathermerge: on # (>= 14)
postgresql_enable_hashagg: on
postgresql_enable_hashjoin: on
postgresql_enable_indexscan: on
postgresql_enable_indexonlyscan: on
postgresql_enable_material: on
postgresql_enable_memoize: on # (>= 14)
postgresql_enable_mergejoin: on
postgresql_enable_nestloop: on
postgresql_enable_parallel_append: on # (>= 11)
Expand Down Expand Up @@ -596,6 +602,7 @@ postgresql_log_line_prefix: "%t "
postgresql_log_lock_waits: off
postgresql_log_parameter_max_length: -1 # (>= 13)
postgresql_log_parameter_max_length_on_error: 0 # (>= 13)
postgresql_log_recovery_conflict_waits: off # (>= 14)
postgresql_log_statement: "none" # none, ddl, mod, all
postgresql_log_replication_commands: off
# log temporary files equal or larger
Expand All @@ -615,6 +622,7 @@ postgresql_track_counts: on
postgresql_track_io_timing: off # (>= 9.2)
postgresql_track_functions: "none" # none, pl, all
postgresql_track_activity_query_size: 1024
postgresql_track_wal_io_timing: off #(>= 14)
postgresql_update_process_title: on
postgresql_stats_temp_directory: "pg_stat_tmp"

Expand All @@ -625,6 +633,7 @@ postgresql_log_parser_stats: off
postgresql_log_planner_stats: off
postgresql_log_executor_stats: off
postgresql_log_statement_stats: off
postgresql_compute_query_id: auto


#------------------------------------------------------------------------------
Expand Down Expand Up @@ -683,9 +692,12 @@ postgresql_session_replication_role: "origin"
postgresql_statement_timeout: 0 # in milliseconds, 0 is disabled
postgresql_lock_timeout: 0 # in milliseconds, 0 is disabled (>= 9.3)
postgresql_idle_in_transaction_session_timeout: 0 # in milliseconds, 0 is disabled (>= 9.6)
postgresql_idle_session_timeout: 0 # (>= 14)
postgresql_vacuum_failsafe_age: 1600000000 # (>= 14)
postgresql_vacuum_freeze_min_age: 50000000
postgresql_vacuum_freeze_table_age: 150000000
postgresql_vacuum_cleanup_index_scale_factor: 0.1 # (>= 11)
postgresql_vacuum_multixact_failsafe_age: 1600000000 # (>= 14)
postgresql_vacuum_multixact_freeze_min_age: 5000000 # (>= 9.3)
postgresql_vacuum_multixact_freeze_table_age: 150000000 # (>= 9.3)

Expand All @@ -694,6 +706,7 @@ postgresql_xmlbinary: "base64"
postgresql_xmloption: "content"
postgresql_gin_fuzzy_search_limit: 0 # (<= 9.2)
postgresql_gin_pending_list_limit: 4MB # (>= 9.5)
postgresql_default_toast_compression: pglz #(>= 14)


# - Locale and Formatting -
Expand Down Expand Up @@ -729,11 +742,13 @@ postgresql_lc_time: "{{ postgresql_locale }}"
postgresql_default_text_search_config: "pg_catalog.english"

postgresql_dynamic_library_path: "$libdir"
postgresql_extension_destdir: "" # (>= 14)
postgresql_local_preload_libraries: []
postgresql_session_preload_libraries: []
postgresql_jit_provider: "llvmjit"



#------------------------------------------------------------------------------
# LOCK MANAGEMENT
#------------------------------------------------------------------------------
Expand Down Expand Up @@ -785,6 +800,7 @@ postgresql_exit_on_error: off
postgresql_restart_after_crash: on
# Retry or panic on failure to fsync data?
postgresql_data_sync_retry: off
postgresql_recovery_init_sync_method: fsync # (>= 14)


#------------------------------------------------------------------------------
Expand Down
Loading