]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[595-permission-problem-with-posgresql-read-only-unit-test] Added alternate way to...
authorFrancis Dupont <fdupont@isc.org>
Wed, 5 Jun 2019 12:40:42 +0000 (14:40 +0200)
committerFrancis Dupont <fdupont@isc.org>
Tue, 9 Jul 2019 18:31:23 +0000 (14:31 -0400)
doc/devel/unit-tests.dox

index 853dc00e5cf10f16db26d602b82706a61b393f72..9f238021af0f7fb6aaf1eb25529f4f7d9ad30686 100644 (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