阿里云 rds_pgsql 是不是没有超级用户权限 是不是不能自建数据类型 各位大佬求助

vps网友提供 11-16 讨论归档 6

今天用阿里云上的 pgsql 导入数据库 发现 create type 好像是不能用的 这么坑的吗 阿里另一款 POLARDB for pg 能用吗 求大佬解惑

本文由 vps网友提供,转载请注明出处

本文链接: https://www.vpsvsvps.com/discuss/a/1676472003592196096.html

标签:
013231
11-21

@lazycat353 base type 确实需要 superuser 权限.

lazycat353
11-21

@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

013231
11-20

@lazycat353 确定可以. 看到你的帖子后专门测试了下.

lazycat353
11-20

@013231 可以吗 我那天导入的时候 一直在提示权限不够

013231
11-14

1. 確實沒有 superuser。
2. 可以 create type. create type 不需要 superuser 權限。

singerll
11-14

pg 不知道,mysql 是可以开通 root 账号的