Skip to content

postgres partition by hash failure #352

Closed
@yarelm

Description

@yarelm

Hi, Very cool project!

I have the following schema:

CREATE TABLE "user" (
    "id" uuid PRIMARY KEY,
    "other_id" uuid NOT NULL,
  ...
) PARTITION BY HASH (other_id);

CREATE TABLE "user_1" PARTITION OF "user" FOR VALUES WITH (MODULUS 10, REMAINDER 0); 

when I run sqlc generate I get the error message syntax error at or near "WITH"

I guess it has to do with hash partition introduced in Postgres 11

Any plans to make it work? Or any workaround?

Thanks

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