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:
@@ -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
|
||||
|
Reference in New Issue
Block a user