相关疑难解决方法(0)

在PostgreSQL中同时修改所有表上的OWNER

如何修改PostgreSQL数据库中所有表的所有者?

我试过,ALTER TABLE * OWNER TO new_owner但它不支持星号语法.

postgresql

384
推荐指数
12
解决办法
24万
查看次数

为1个指定的数据库重新设置所有权

我想使用更改一个特定数据库中所有表的所有者

REASSIGN OWNED BY postgres TO myuser
Run Code Online (Sandbox Code Playgroud)

但它显示:

ERROR:  cannot reassign ownership of objects owned by role postgres because they are required by the database system
Run Code Online (Sandbox Code Playgroud)

我认为这是因为这个系统中有更多的数据库,但我想只在一个指定的数据库(database1)中重新分配所有者.

有办法吗?

postgresql

11
推荐指数
1
解决办法
6946
查看次数

标签 统计

postgresql ×2