在GCP postgresql中创建运算符类是possible/how吗?
Is it possible/how to create operator classes in GCP postgresql?
在 postgresql 中创建运算符 类 需要您正在使用的角色的超级用户属性 - https://www.postgresql.org/docs/9.6/sql-createopclass.html.
The user who defines an operator class becomes its owner. Presently, the creating user must be a superuser. (This restriction is made because an erroneous operator class definition could confuse or even crash the server.)
但是,GCP 不允许您将超级用户属性添加到角色 - https://cloud.google.com/sql/docs/postgres/users。
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.
有什么方法可以在 GCP postgresql 中创建运算符 类 吗?如果是,那又如何?
是的,在有限的方式下,通过使用 PostgreSQL Extensions for Cloud SQL. Such as btree_gin
or btree_gist
. Unfortunately, if it is not on this list 则无法完成。
如果您需要请求新的扩展,您可以通过在 Issue Tracker 上找到它(查找 Cloud SQL
)或创建一个新问题来投票。
在 postgresql 中创建运算符 类 需要您正在使用的角色的超级用户属性 - https://www.postgresql.org/docs/9.6/sql-createopclass.html.
The user who defines an operator class becomes its owner. Presently, the creating user must be a superuser. (This restriction is made because an erroneous operator class definition could confuse or even crash the server.)
但是,GCP 不允许您将超级用户属性添加到角色 - https://cloud.google.com/sql/docs/postgres/users。
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.
有什么方法可以在 GCP postgresql 中创建运算符 类 吗?如果是,那又如何?
是的,在有限的方式下,通过使用 PostgreSQL Extensions for Cloud SQL. Such as btree_gin
or btree_gist
. Unfortunately, if it is not on this list 则无法完成。
如果您需要请求新的扩展,您可以通过在 Issue Tracker 上找到它(查找 Cloud SQL
)或创建一个新问题来投票。