Skip to content

Commit f9cadcc

Browse files
committed
fix: db_user_namespace was deprecated starting in pg 16.4 and higher
1 parent 2ccb5ac commit f9cadcc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ansible/tasks/stage2-setup-postgres.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@
2525
/etc/postgresql-custom/supautils.conf
2626
when: is_psql_oriole and stage2_nix
2727
become: yes
28-
28+
- name: Remove db_user_namespace from postgresql.conf if oriole-xx build
29+
ansible.builtin.command:
30+
cmd: >
31+
sed -i 's/db_user_namespace = off/#db_user_namespace = off/g;'
32+
/etc/postgresql/postgresql.conf
33+
when: is_psql_oriole and stage2_nix
34+
become: yes
2935
- name: Install Git for Nix package management
3036
become: yes
3137
apt:

0 commit comments

Comments
 (0)