Skip to content

Commit 70ab43a

Browse files
committed
PG17 correction coquilles
1 parent 8003986 commit 70ab43a

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ postgresql_dynamic_shared_memory_type: "posix" # the default is the first optio
214214
# mmap
215215
# use none to disable dynamic shared memory
216216
postgresql_min_dynamic_shared_memory: 0MB # (>= 14) (change requires restart)
217-
postgresql_vacuum_buffer_usage_limit: "{{ 256kB if postgresql_version is version_compare('16', '=') else 2MB }}" # (>= 16) size of vacuum and analyze buffer access strategy ring;
217+
postgresql_vacuum_buffer_usage_limit: "{{ '256kB' if postgresql_version is version_compare('16', '=') else '2MB' }}" # (>= 16) size of vacuum and analyze buffer access strategy ring;
218218
# 0 to disable vacuum buffer access strategy;
219219
# range 128kB to 16GB
220220

molecule/default/molecule.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ platforms:
4848
pre_build_image: true
4949
cgroupns_mode: host
5050
command: ${MOLECULE_DOCKER_COMMAND:-""}
51+
- name: postgresql-17
52+
image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian11}-ansible:latest"
53+
volumes:
54+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
55+
privileged: true
56+
pre_build_image: true
57+
cgroupns_mode: host
58+
command: ${MOLECULE_DOCKER_COMMAND:-""}
5159
provisioner:
5260
name: ansible
5361
config_options:
@@ -68,5 +76,7 @@ provisioner:
6876
postgresql_version: 15
6977
postgresql-16:
7078
postgresql_version: 16
79+
postgresql-17:
80+
postgresql_version: 17
7181
verifier:
7282
name: ansible

templates/postgresql.conf-17.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ enable_group_by_reordering = {{ 'on' if postgresql_enable_group_by_reordering el
417417

418418
# - Planner Cost Constants -
419419

420-
eq_page_cost = {{ postgresql_seq_page_cost }} # measured on an arbitrary scale
420+
seq_page_cost = {{ postgresql_seq_page_cost }} # measured on an arbitrary scale
421421
random_page_cost = {{ postgresql_random_page_cost }} # same scale as above
422422
cpu_tuple_cost = {{ postgresql_cpu_tuple_cost }} # same scale as above
423423
cpu_index_tuple_cost = {{ postgresql_cpu_index_tuple_cost }} # same scale as above

0 commit comments

Comments
 (0)