2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-05 00:15:17 +00:00

[595-permission-problem-with-posgresql-read-only-unit-test] Added alternate way to give SELECT permission for RO PostgreSQL unit tests

This commit is contained in:
Francis Dupont
2019-06-05 14:40:42 +02:00
parent 326fdbeb51
commit 0cd33422f2

View File

@@ -191,6 +191,21 @@ keatest=> \q
privilege is granted only on the tables that the <i>keatest</i> user can access
within the public schema.
It seems this no longer works on recent versions of PostgreSQL: if you get
a permission problem on SELECT on the schema_version table for
eatest_readonly, please try with the schema loaded:
@verbatim
$ psql -h localhost -U keatest -d keatest
Password for user keatest:
psql (9.1.12)
Type "help" for help.
keatest=> GRANT SELECT ON ALL TABLES IN SCHEMA public TO keatest_readonly;
GRANT
keatest=> \q
@endverbatim
Now we should be able to log into the newly created database using both user
names:
@verbatim