Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ansible/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ postgres_major:

# Full version strings for each major version
postgres_release:
postgresorioledb-17: "17.0.1.090-orioledb"
postgres17: "17.4.1.040"
postgres15: "15.8.1.097"
postgresorioledb-17: "17.0.1.091-orioledb"
postgres17: "17.4.1.041"
postgres15: "15.8.1.098"

# Non Postgres Extensions
pgbouncer_release: "1.19.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-- migrate:up
DO $$
DECLARE
major_version INT;
BEGIN
SELECT current_setting('server_version_num')::INT / 10000 INTO major_version;

IF major_version >= 16 THEN
GRANT anon, authenticated, service_role TO postgres WITH ADMIN OPTION;
END IF;
END $$;

-- migrate:down
Loading