Postgresql 授予cloudsql postgres上的rw权限

Postgresql 授予cloudsql postgres上的rw权限,postgresql,google-cloud-sql,Postgresql,Google Cloud Sql,我有以下用户: postgres | Create role, Create DB | {cloudsqlsuperuser} proxyuser | Create role, Create DB | {cloudsqlsuperuser} qa|Create role, Create DB | {cloudsqlsuperuser} 这些表格包括: List of relations Schema | Name | Type |

我有以下用户:

postgres | Create role, Create DB | {cloudsqlsuperuser}
proxyuser | Create role, Create DB | {cloudsqlsuperuser}
qa|Create role, Create DB | {cloudsqlsuperuser}
这些表格包括:

                List of relations
 Schema |        Name        | Type  |   Owner
--------+--------------------+-------+-----------
 public | member_preferences | table | proxyuser
 public | message_queue      | table | proxyuser
 public | pubsub_queue       | table | proxyuser
我目前以postgres用户的身份登录,并希望授予qa用户读写这些表以及将来在该模式中创建的任何表的权限

我试着跟着

然而,当我跑的时候
将模式public中所有表上的SELECT授予qa
它的答复是:
错误:关系消息队列的权限被拒绝

如何进一步排除故障?我错过了什么

x86_64-pc-linux-gnu上的PostgreSQL 9.6.1,由gcc(Ubuntu 4.8.4-2ubuntu1~14.04.3)4.8.4编译,64位
是实例显示的版本

更新:


我必须首先以生成表的代理用户身份登录,才能将读写权限授予其他用户。这真的很不舒服,因为所有用户都应用了
cloudsqlsuperuser
角色。因此,我希望表上的拨款能够从这些用户中的任何一个流向他们中的任何一个

我遇到了一个可能与您类似的问题,现在通过以下方法解决了该问题:

  • 以设置实例时的第一个用户身份登录(不是postgres)
  • 使用此用户向后续用户授予权限

谷歌似乎授予第一个用户所有特权,但不授予后续用户。。也许吧

是的,这就是我最终所做的。不幸的是,这并不能解开我的谜团。