diff --git a/update/ansible/playbook/tasks/roles/postgres/tasks/main.yml b/update/ansible/playbook/tasks/roles/postgres/tasks/main.yml index 81c12009f8..dd839571dd 100644 --- a/update/ansible/playbook/tasks/roles/postgres/tasks/main.yml +++ b/update/ansible/playbook/tasks/roles/postgres/tasks/main.yml @@ -95,6 +95,12 @@ expires: infinity state: present + - name: Create pg_stat_statements extension + postgresql_ext: + db: postgres + name: pg_stat_statements + schema: public + - name: Stop Postgres 14 database without supervisor command: /usr/pgsql-14/bin/pg_ctl stop -D /srv/postgres14 become: true diff --git a/update/ansible/playbook/tasks/roles/postgres/tasks/restore.yml b/update/ansible/playbook/tasks/roles/postgres/tasks/restore.yml index 86ae704a2b..3d5a0b1fb8 100644 --- a/update/ansible/playbook/tasks/roles/postgres/tasks/restore.yml +++ b/update/ansible/playbook/tasks/roles/postgres/tasks/restore.yml @@ -52,6 +52,7 @@ postgresql_ext: db: postgres name: pg_stat_statements + schema: public - name: Stop Postgres database without supervisor command: /usr/pgsql-14/bin/pg_ctl stop -D /srv/postgres14