Use testsetup/postgresql_setup.sql in CI

pull/1364/head
Jack Christensen 2022-10-29 17:27:39 -05:00
parent 6bedfa7def
commit 97d1012f42
1 changed files with 2 additions and 12 deletions

View File

@ -18,18 +18,8 @@ then
fi
sudo /etc/init.d/postgresql restart
psql -U postgres -c 'create database pgx_test'
psql -U postgres pgx_test -c 'create extension hstore'
psql -U postgres pgx_test -c 'create domain uint64 as numeric(20,0)'
psql -U postgres -c "create user pgx_ssl SUPERUSER PASSWORD 'secret'"
psql -U postgres -c "create user pgx_md5 SUPERUSER PASSWORD 'secret'"
psql -U postgres -c "create user pgx_pw SUPERUSER PASSWORD 'secret'"
psql -U postgres -c "create user `whoami`"
psql -U postgres -c "create user pgx_replication with replication password 'secret'"
# The tricky test user, below, has to actually exist so that it can be used in a test
# of aclitem formatting. It turns out aclitems cannot contain non-existing users/roles.
psql -U postgres -c "create user \" tricky, ' } \"\" \\ test user \" superuser password 'secret'"
createdb -U postgres pgx_test
psql -U postgres -f testsetup/postgresql_setup.sql pgx_test
fi
if [[ "${PGVERSION-}" =~ ^cockroach ]]