Skip to content

CREATE SCHEMA... AUTHORIZATION is unsupported #53559

@vy-ton

Description

@vy-ton

In Postgres,

postgres=# create user andy;
CREATE ROLE
postgres=# CREATE SCHEMA AUTHORIZATION andy;
CREATE SCHEMA
postgres=# CREATE SCHEMA andy_schema AUTHORIZATION andy;
CREATE SCHEMA
postgres=# \dn
    List of schemas
    Name     |  Owner
-------------+----------
 andy        | andy
 andy_schema | andy
 public      | postgres
(3 rows)

In CockroachDB,

root@127.0.0.1:63916/vy> CREATE SCHEMA AUTHORIZATION andy;
invalid syntax: statement ignored: at or near "andy": syntax error
SQLSTATE: 42601
DETAIL: source SQL:
CREATE SCHEMA AUTHORIZATION andy
                            ^
root@127.0.0.1:63916/vy> CREATE SCHEMA andy_schema AUTHORIZATION andy;
invalid syntax: statement ignored: at or near "authorization": syntax error
SQLSTATE: 42601
DETAIL: source SQL:
CREATE SCHEMA andy_schema AUTHORIZATION andy
                          ^

We should at least return an unimplemented error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions