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

Handle more unconvertible CREATE TABLE statements #547

Merged
merged 3 commits into from
Dec 18, 2024

Conversation

andrew-farries
Copy link
Collaborator

Build on #546 and ensure that more CREATE TABLE statements with options and clauses that are not representable as pgroll OpCreateTable operations fall back to raw SQL.

Part of #504

`OF type_name` is not representable as an `OpCreateTable` operation.
Partitioned tables are not representable as an `OpCreateTable`
operation.

The testcase passes because tables that are partitions of other tables
have `inhRelations` set to the table they are a partition of, and table
inheritance already falls back to raw SQL.
`LIKE` clauses are not representable as an `OpCreateTable` operation.
@andrew-farries andrew-farries marked this pull request as ready for review December 18, 2024 09:22
@andrew-farries andrew-farries merged commit b727101 into main Dec 18, 2024
28 checks passed
@andrew-farries andrew-farries deleted the more-unconvertible-create-table branch December 18, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants