V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Recommended Services
Amazon Web Services
LeanCloud
New Relic
ClearDB
lazycat353
V2EX  ›  云计算

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

  •  
  •   lazycat353 · 2019-11-14 18:00:00 +08:00 · 3136 次点击
    这是一个创建于 1596 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    6 条回复    2019-11-21 11:47:09 +08:00
    singerll
        1
    singerll  
       2019-11-14 18:37:59 +08:00 via Android
    pg 不知道,mysql 是可以开通 root 账号的
    013231
        2
    013231  
       2019-11-14 19:02:20 +08:00
    1. 確實沒有 superuser。
    2. 可以 create type. create type 不需要 superuser 權限。
    lazycat353
        3
    lazycat353  
    OP
       2019-11-20 15:39:38 +08:00
    @013231 可以吗 我那天导入的时候 一直在提示权限不够
    013231
        4
    013231  
       2019-11-20 16:55:00 +08:00
    @lazycat353 确定可以. 看到你的帖子后专门测试了下.
    lazycat353
        5
    lazycat353  
    OP
       2019-11-21 10:39:40 +08:00
    @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
        6
    013231  
       2019-11-21 11:47:09 +08:00
    @lazycat353 base type 确实需要 superuser 权限.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1970 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 16:21 · PVG 00:21 · LAX 09:21 · JFK 12:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.