Skip to content

Postgres generated columns produce a syntax error #669

Closed
@stereosteve

Description

@stereosteve

Great project thank you for creating this!

Is it known what version of postgres features the parser supports? I tried to use a generated column:

create table descriptions_md5 (
    id varchar(32) GENERATED ALWAYS AS (MD5(txt)) STORED,
    txt text,
    primary key (id)
);

Produces error:

# package db
sql/schema.sql:1:1: syntax error at or near "("

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions