Skip to content

Add support for CREATE TABLE AS statements - #176

Open
Just-Zach wants to merge 1 commit into
oguimbal:masterfrom
Just-Zach:feature/create-table-as-select
Open

Add support for CREATE TABLE AS statements#176
Just-Zach wants to merge 1 commit into
oguimbal:masterfrom
Just-Zach:feature/create-table-as-select

Conversation

@Just-Zach

@Just-Zach Just-Zach commented Aug 13, 2026

Copy link
Copy Markdown

Fixes #175

Adds support for CREATE TABLE ... AS SELECT as defined in https://www.postgresql.org/docs/current/sql-createtableas.html

Implementation was kept narrow to the standard CREATE TABLE AS form:

 CREATE TABLE [IF NOT EXISTS] table_name [(column_name [, ...])]
      AS query
      [ WITH [ NO ] DATA ]

Example query:

CREATE TABLE foo AS SELECT * FROM bar
  • New tests added
  • Existing tests pass

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.

Add Support for CREATE TABLE ... AS SELECT Grammar

1 participant