postgresql 向用户授予“创建模式”ON 数据库?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10852529/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 23:31:59  来源:igfitidea点击:

Grant "create schema" ON database to a user?

postgresqlpostgresql-9.1role

提问by matheusvmbruno

I'm using PostgreSQL 9.1 and have to to grant "create schema" ON database to a user.

我正在使用 PostgreSQL 9.1,并且必须向用户授予“创建模式”ON 数据库。

How can I do that?

我怎样才能做到这一点?

回答by matheusvmbruno

It's more simple than I thought.

这比我想象的要简单。

GRANT CREATE ON DATABASE db TO user;