dolphin-系统信息函数

dolphin-会话信息函数

  • database()

    描述:当前数据库模式的名称。

    返回值类型:name

    示例:

    openGauss=# SELECT database();
     database
    ----------
     public
    (1 row)
    

    备注:database返回在搜索路径中第一个顺位有效的模式名。(如果搜索路径为空则返回NULL,没有有效的模式名也返回NULL)。如果创建表或者其他命名对象时没有声明目标模式,则将使用这些对象的模式。

  • uuid_short()

    描述:当前数据库的uuid_short信息。

    返回值类型:int

    示例:

    openGauss=# select uuid_short();
        uuid_short    
    ------------------
    3939644819374082
    (1 row)
    
  • dolphin_version()

    描述:dolphin版本信息。返回一个描述dolphin插件版本信息的字符串。

    返回值类型:text

    示例:

    openGauss=# SELECT dolphin_version();
        dolphin_version
    ------------------------
     dolphin build 511401b6
    (1 row)
    
  • dolphin_types()

    描述:dolphin新增类型信息。返回一个描述dolphin新增类型信息的二维字符串数组, 每个数组内的信息依次是:类型名、是否支持精度、是否支持范围。

    返回值类型:text[][]

    示例:

    openGauss=# SELECT dolphin_types();
                        dolphin_types
    ----------------------------------------------------------------------------------------------------------------------------------------------
    {{uint1,false,false},{uint2,false,false},{uint4,false,false},{uint8,false,false},{year,true,false},{binary,true,false},{varbinary,true,false},{tinyblob,false,false},{mediumblob,false,false},{longblob,false,false},{set,false,false},{enum,false,false}}
    (1 row)
    
意见反馈
编组 3备份
    openGauss 2024-03-29 00:50:57
    取消