
今天用阿里云上的 pgsql 导入数据库 发现 create type 好像是不能用的 这么坑的吗 阿里另一款 POLARDB for pg 能用吗 求大佬解惑
1 singerll 2019-11-14 18:37:59 +08:00 via Android pg 不知道,mysql 是可以开通 root 账号的 |
2 013231 2019-11-14 19:02:20 +08:00 1. 有 superuser。 2. 可以 create type. create type 不需要 superuser 限。 |
3 lazycat353 OP @013231 可以吗 我那天导入的时候 一直在提示权限不够 |
4 013231 2019-11-20 16:55:00 +08:00 @lazycat353 确定可以. 看到你的帖子后专门测试了下. |
5 lazycat353 OP @013231 但是我这边执行 sql 一直提示 权限不够 这是我 sql 的问题吗 CREATE TYPE "public"."lquery" ( INPUT = "public"."lquery_in", OUTPUT = "public"."lquery_out", INTERNALLENGTH = VARIABLE, STORAGE = extended, CATEGORY = U, DELIMITER = ',' ) > ERROR: must be superuser to create a base type |
6 013231 2019-11-21 11:47:09 +08:00 @lazycat353 base type 确实需要 superuser 权限. |