Невозможно создать схемы в экземпляре Cloud SQL Postgres - PullRequest
0 голосов
/ 16 января 2019

У меня проблема с решением Google Cloud SQL, когда я не могу создать новые схемы в своей базе данных. Правила следующие:

testdb=> \du
                                            List of roles
     Role name     |                         Attributes                         |      Member of
-------------------+------------------------------------------------------------+---------------------
 cloudsqladmin     | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
 cloudsqlagent     | Create role, Create DB                                     | {cloudsqlsuperuser}
 cloudsqlreplica   | Replication                                                | {}
 cloudsqlsuperuser | Create role, Create DB                                     | {}
 testuser          | Create role, Create DB                                     | {cloudsqlsuperuser}
 postgres          | Create role, Create DB                                     | {cloudsqlsuperuser}

Попытка создать новую схему с testuser приводит к ошибке разрешения.

testdb=> CREATE SCHEMA IF NOT EXISTS testschema;
ERROR:  permission denied for database testdb

Но я не могу GRANT CREATE ON DATABASE testdb TO testuser; из-за той же проблемы с разрешением.

Есть ли способ дать testuser право создавать схемы самостоятельно?

...