gpt4 book ai didi

postgresql - 是否可以在 Heroku Postgresql 上创建数据库角色?

转载 作者:行者123 更新时间:2023-11-29 11:11:31 25 4
gpt4 key购买 nike

可能这是一个很正常的问题,但我很想知道是否可以在 Heroku Postgresql 上创建数据库角色?我的意思是使用这个命令:

CREATE ROLE "rolename";

谢谢。

最佳答案

更新:

是的。截至 2017 年 8 月 8 日,凭证可用于 Heroku Postgresql:https://devcenter.heroku.com/articles/heroku-postgresql-credentials

Heroku Postgres credentials are available only to production-class plans (Standard, Premium, Private, and Shield) on Postgres 9.6 and above. Hobby-tier plans include only the default credential, which cannot create other credentials or grant permissions.


旧答案:

没有。您不能使用 Heroku Postgres 实例创建或修改角色。来自 the Heroku documentation :

Heroku runs the SQL below to create a user and database for you.

You cannot create or modify databases and roles on Heroku Postgres.

创建角色(只读访问)的能力是我要求的一项功能,但据我所知,它不在当前的路线图上。

关于postgresql - 是否可以在 Heroku Postgresql 上创建数据库角色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17561140/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com