Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TABLES_NOT_LINKED_TO_OTHERS] Decide how to handle partitioned tables #528

Closed
mfvanek opened this issue Dec 5, 2024 · 1 comment · Fixed by #539
Closed

[TABLES_NOT_LINKED_TO_OTHERS] Decide how to handle partitioned tables #528

mfvanek opened this issue Dec 5, 2024 · 1 comment · Fixed by #539
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@mfvanek
Copy link
Owner

mfvanek commented Dec 5, 2024

CREATE TABLE IF NOT EXISTS entity_ref(
    ref_type            VARCHAR(32) NOT NULL,
    ref_value           VARCHAR(64) NOT NULL,
    creation_date       TIMESTAMP WITH TIME ZONE NOT NULL,
    entity_id           VARCHAR(64) NOT NULL,
    PRIMARY KEY(ref_type, ref_value, creation_date, entity_id)
) PARTITION BY RANGE (creation_date);

CREATE TABLE IF NOT EXISTS entity_ref_default PARTITION OF entity_ref DEFAULT;
@mfvanek mfvanek added enhancement New feature or request help wanted Extra attention is needed labels Dec 5, 2024
@mfvanek
Copy link
Owner Author

mfvanek commented Dec 5, 2024

Relates to #467

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant