Skip to content

Commit

Permalink
drop dblink extension check/activation
Browse files Browse the repository at this point in the history
its being deprecated in favor of materialized views in georchestra/cadastrapp#553
  • Loading branch information
landryb committed Aug 2, 2021
1 parent 978cdcf commit 9fb7ee2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions roles/postgresql/tasks/cadastrapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,6 @@
roles: "{{ cadastrapp.db.user }}"
objs: "{{ cadastrapp.db.schema }}"

- name: check if dblink is already loaded
become: yes
become_user: postgres
command: psql -d {{ cadastrapp.db.name }} -t -c "\dx"
register: loaded_extensions

- name: create dblink extension
become: yes
become_user: postgres
command: psql -d {{ cadastrapp.db.name }} -t -c "CREATE EXTENSION dblink;"
when: "loaded_extensions.stdout is defined and 'dblink' not in loaded_extensions.stdout"

- name: list tables
tags: runsql
check_mode: no
Expand Down

0 comments on commit 9fb7ee2

Please sign in to comment.