From: Francis Dupont Date: Wed, 5 Jun 2019 12:40:42 +0000 (+0200) Subject: [595-permission-problem-with-posgresql-read-only-unit-test] Added alternate way to... X-Git-Tag: Kea-1.6.0-beta2~92 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=0cd33422f27bedcc18d3a17cf6514dff8b0fbeb7;p=thirdparty%2Fkea.git [595-permission-problem-with-posgresql-read-only-unit-test] Added alternate way to give SELECT permission for RO PostgreSQL unit tests --- diff --git a/doc/devel/unit-tests.dox b/doc/devel/unit-tests.dox index 853dc00e5c..9f238021af 100644 --- a/doc/devel/unit-tests.dox +++ b/doc/devel/unit-tests.dox @@ -191,6 +191,21 @@ keatest=> \q privilege is granted only on the tables that the keatest 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