From 9eaeb51e305fa7bed7c74a290242f9d020a55129 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 29 Oct 2022 17:55:13 -0500 Subject: [PATCH] Fix CI PostgreSQL user permissions --- testsetup/postgresql_setup.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/testsetup/postgresql_setup.sql b/testsetup/postgresql_setup.sql index 66d3eb11..cda17490 100644 --- a/testsetup/postgresql_setup.sql +++ b/testsetup/postgresql_setup.sql @@ -3,14 +3,14 @@ create extension hstore; create domain uint64 as numeric(20,0); -- Create users for different types of connections and authentication. -create user pgx_ssl PASSWORD 'secret'; +create user pgx_ssl PASSWORD 'secret' with superuser; set password_encryption = md5; -create user pgx_md5 PASSWORD 'secret'; +create user pgx_md5 PASSWORD 'secret' with superuser; set password_encryption = 'scram-sha-256'; -create user pgx_pw PASSWORD 'secret'; -create user pgx_scram PASSWORD 'secret'; +create user pgx_pw PASSWORD 'secret' with superuser; +create user pgx_scram PASSWORD 'secret' with superuser; \set whoami `whoami` -create user :whoami; -- unix domain socket user +create user :whoami with superuser; -- unix domain socket user -- The tricky test user, below, has to actually exist so that it can be used in a test