mirror of https://github.com/jackc/pgx.git
Use testsetup/postgresql_setup.sql in CI
parent
6bedfa7def
commit
97d1012f42
|
@ -18,18 +18,8 @@ then
|
||||||
fi
|
fi
|
||||||
sudo /etc/init.d/postgresql restart
|
sudo /etc/init.d/postgresql restart
|
||||||
|
|
||||||
psql -U postgres -c 'create database pgx_test'
|
createdb -U postgres pgx_test
|
||||||
psql -U postgres pgx_test -c 'create extension hstore'
|
psql -U postgres -f testsetup/postgresql_setup.sql pgx_test
|
||||||
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'"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${PGVERSION-}" =~ ^cockroach ]]
|
if [[ "${PGVERSION-}" =~ ^cockroach ]]
|
||||||
|
|
Loading…
Reference in New Issue