Skip to content

Postgres partitioning "CREATE TABLE ... PARTITION OF" unparseable #2042

@maciek134

Description

@maciek134

While CREATE TABLE ... PARTITION BY was mentioned in #1281 and works, trying to create a partition in CREATE TABLE:

CREATE TABLE measurement_y2006m02 PARTITION OF measurement
    FOR VALUES FROM ('2006-02-01') TO ('2006-03-01');

will fail with

ParserError("Expected: end of statement, found: PARTITION at Line: 2, Column: 43")

Happy to create a PR once I get comfortable with the codebase

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