为 GCP Cloud SQL 设置 session_replication_role
Setting session_replication_role for GCP Cloud SQL
我正在尝试 运行 SET session_replication_role = 'replica';
在 GCP Cloud SQL Postgres 9.6 实例中,但是我遇到了这个错误 ERROR: permission denied to set parameter "session_replication_role"
即使 postgres 用户是cloudsql 管理员用户。我是否必须启动自己的自我管理实例来解决问题,还是有解决办法?
据我所见,由于该服务目前处于 Beta 阶段,因此仍有一些功能不可用,例如。因此,我们需要多等 Google 才能发布他们产品的最终版本。
很遗憾,它与服务是否处于 Beta 状态无关,您无法在 GCP Cloud SQL 中设置 session_replication_role。
您需要 superuser privileges to do that operation, but GCP Cloud only allows to cloudsqlsuperuser privileges. It's features as follows:
When you create a new Cloud SQL for PostgreSQL instance, the default postgres user is already created for you, though you must set its password.
The postgres user is part of the cloudsqlsuperuser role, and has the following attributes (privileges): CREATEROLE, CREATEDB, and LOGIN. It does not have the SUPERUSER or REPLICATION attributes.
您可以在 this 博客 post 中找到更多信息。
我正在尝试 运行 SET session_replication_role = 'replica';
在 GCP Cloud SQL Postgres 9.6 实例中,但是我遇到了这个错误 ERROR: permission denied to set parameter "session_replication_role"
即使 postgres 用户是cloudsql 管理员用户。我是否必须启动自己的自我管理实例来解决问题,还是有解决办法?
据我所见,由于该服务目前处于 Beta 阶段,因此仍有一些功能不可用,例如。因此,我们需要多等 Google 才能发布他们产品的最终版本。
很遗憾,它与服务是否处于 Beta 状态无关,您无法在 GCP Cloud SQL 中设置 session_replication_role。
您需要 superuser privileges to do that operation, but GCP Cloud only allows to cloudsqlsuperuser privileges. It's features as follows:
When you create a new Cloud SQL for PostgreSQL instance, the default postgres user is already created for you, though you must set its password.
The postgres user is part of the cloudsqlsuperuser role, and has the following attributes (privileges): CREATEROLE, CREATEDB, and LOGIN. It does not have the SUPERUSER or REPLICATION attributes.
您可以在 this 博客 post 中找到更多信息。