pg permission docs: make hasura user owner of system schemas (fix #1697) (#1727)

There was a postgres permission issue in the docs. The hasura user
  needed to be owner of the system schemas (hdb_catalog), otherwise it
  won't be able to table schema changes during version upgrades.
This commit is contained in:
Anon Ray 2019-03-19 04:36:40 +00:00 committed by Shahidh K Muhammed
parent 8615c306ec
commit 6e464a1342

View File

@ -38,9 +38,9 @@ Here's a sample SQL block that you can run on your database to create the right
CREATE SCHEMA IF NOT EXISTS hdb_catalog;
CREATE SCHEMA IF NOT EXISTS hdb_views;
-- grant all privileges on system schemas
GRANT ALL PRIVILEGES ON SCHEMA hdb_catalog TO hasurauser;
GRANT ALL PRIVILEGES ON SCHEMA hdb_views TO hasurauser;
-- make the user an owner of system schemas
ALTER SCHEMA hdb_catalog OWNER TO hasurauser;
ALTER SCHEMA hdb_views OWNER TO hasurauser;
-- grant select permissions on information_schema and pg_catalog. This is
-- required for hasura to query list of available tables