Skip to content

PostgreSQL: Add support for TABLE query command - #2512

Open
BenSatori wants to merge 2 commits into
apache:mainfrom
BenSatori:postgres-table-command
Open

BenSatori wants to merge 2 commits into
apache:mainfrom
BenSatori:postgres-table-command

Conversation

@BenSatori

Copy link
Copy Markdown
Contributor

Adds support for PostgreSQL's TABLE query command, which is syntactic sugar for selecting all rows from a table.

Examples that now parse:

TABLE customers ORDER BY contact_name LIMIT 1;
TABLE ONLY customers;
TABLE customers *;

This also supports TABLE in query-expression positions, such as subqueries, through the existing query body parser.

PostgreSQL docs: https://www.postgresql.org/docs/current/sql-select.html

AI assistance was used in preparing this change.

Comment thread tests/sqlparser_postgres.rs Outdated
Comment thread tests/sqlparser_common.rs
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