Skip to content

Commit 9820b9a

Browse files
committed
add conf exceptions for 18 and bump to 18.3
1 parent 137e093 commit 9820b9a

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

ansible/tasks/stage2-setup-postgres.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
- name: Check psql_version and modify supautils.conf and postgresql.conf if necessary
22
block:
3-
- name: Check if psql_version is psql_orioledb-17 and if psql_version is psql_15 or psql_17
3+
- name: Check if psql_version is psql_orioledb-17 and if psql_version is psql_15 or psql_17 or psql_18
44
ansible.builtin.set_fact:
55
is_psql_oriole: "{{ psql_version in ['psql_orioledb-17'] }}"
66
is_psql_17: "{{ psql_version in ['psql_17'] }}"
7+
is_psql_18: "{{ psql_version in ['psql_18'] }}"
78
is_psql_15: "{{ psql_version in ['psql_15'] }}"
89

910
- name: Execute tasks when (is_psql_oriole or is_psql_17) and stage2_nix

nix/config.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ in
5454
hash = "sha256-4GMKNgCuonURcVVjJZ7CERzV9DU6SwQOC+gn+UzXqLA=";
5555
};
5656
"18" = {
57-
version = "18.1";
58-
hash = "sha256-/4ZnXDNsRumKyZHrswbRtnYh7OHQZ4e+qt4xLCyRXVQ=";
57+
version = "18.3";
58+
hash = "sha256-2VZj+786gPganZjYlSZr3LdLonS8wE7212Ywpy3uAW8=";
5959
};
6060
};
6161
orioledb = {

nix/ext/tests/lib.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ let
100100
101101
# Version-specific adjustments (mirroring run-server.sh.in:250-295)
102102
${
103-
if majorVersion == "17" || majorVersion == "orioledb-17" then
103+
if majorVersion >= "17" || majorVersion >= "orioledb-17" then
104104
''
105105
# PG 17+: remove timescaledb from shared_preload_libraries
106106
sed -i 's/ timescaledb,//g' $out/postgresql.conf

nix/ext/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@
886886
"revision": "2.1.0",
887887
"hash": "sha256-STJVvvrLVLe1JevNu6u6EftzAWv+X+J8lu66su7Or2s="
888888
},
889-
"2.3.1": {
889+
"2.3": {
890890
"postgresql": [
891891
"18"
892892
],

nix/tools/run-server.sh.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,11 @@ orioledb_config_items() {
285285
perl -pi -e 's/ timescaledb,//g' "$DATDIR/postgresql.conf"
286286
perl -pi -e 's/ timescaledb,//g' "$DATDIR/supautils.conf"
287287
perl -pi -e 's/ plv8,//g;' "$DATDIR/supautils.conf"
288+
elif [[ "$VERSION" == "18" && "$CURRENT_SYSTEM" = "aarch64-darwin" ]]; then
289+
perl -pi -e 's/db_user_namespace = off/#db_user_namespace = off/g;' "$DATDIR/postgresql.conf"
290+
perl -pi -e 's/ timescaledb,//g' "$DATDIR/postgresql.conf"
291+
perl -pi -e 's/ timescaledb,//g' "$DATDIR/supautils.conf"
292+
perl -pi -e 's/ plv8,//g;' "$DATDIR/supautils.conf"
288293
fi
289294
}
290295

0 commit comments

Comments
 (0)