-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add supported SQL commands for Doltgres
- Loading branch information
1 parent
92cb30e
commit 7d58967
Showing
5 changed files
with
246 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: SQL Language Support | ||
--- | ||
|
||
Doltgres's goal is to be compliant with the PostgreSQL dialect, | ||
with every query and statement that works in PostgreSQL behaving identically in Doltgres. | ||
|
||
For most syntax and technical questions, you should feel free to refer to | ||
the [PostgreSQL 15 user manual](https://www.postgresql.org/docs/15/index.html). | ||
|
||
Any deviation from the PostgreSQL 15 manual should be documented on this page, | ||
or else indicates a bug. Please [file issues](https://github.com/dolthub/dolt/issues) | ||
with any incompatibilities you discover. | ||
|
||
This series of documents shows: | ||
|
||
* ✅ Which SQL language features we support the same as PostgreSQL | ||
* 🟠 Where we support the feature but deviate from PostgreSQL in some way | ||
* ❌ Where we lack support for the SQL language feature. |
223 changes: 223 additions & 0 deletions
223
packages/doltgres/content/sql-support/supported-commands.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,223 @@ | ||
--- | ||
title: Supported SQL Commands | ||
--- | ||
|
||
# Supported SQL Commands | ||
|
||
## Access management statements | ||
|
||
| SQL Commands | Parses | Works | Notes and limitations | | ||
|:-------------------------|:------:|:-----:|:-----------------------| | ||
| ALTER DEFAULT PRIVILEGES | ✅ | ❌ | | | ||
| ALTER GROUP | ❌ | ❌ | | | ||
| ALTER ROLE | ❌ | ❌ | | | ||
| ALTER USER | ❌ | ❌ | | | ||
| ALTER USER MAPPING | ❌ | ❌ | | | ||
| CREATE GROUP | 🟠 | ❌ | | | ||
| CREATE ROLE | 🟠 | ❌ | | | ||
| CREATE USER | 🟠 | ❌ | | | ||
| CREATE USER MAPPING | ❌ | ❌ | | | ||
| DROP GROUP | ✅ | ❌ | | | ||
| DROP ROLE | ✅ | ❌ | | | ||
| DROP USER | ✅ | ❌ | | | ||
| DROP USER MAPPING | ❌ | ❌ | | | ||
| GRANT | ✅ | ❌ | | | ||
| REASSIGN OWNED | ❌ | ❌ | | | ||
| REVOKE | ✅ | ❌ | | | ||
|
||
## Data definition statements | ||
|
||
| SQL Commands | Parses | Works | Notes and limitations | | ||
|:---------------------------------|:------:|:-----:|:----------------------| | ||
| ALTER AGGREGATE | ✅ | ❌ | | | ||
| ALTER COLLATION | ✅ | ❌ | | | ||
| ALTER CONVERSION | ✅ | ❌ | | | ||
| ALTER DATABASE | ✅ | ❌ | | | ||
| ALTER DOMAIN | ✅ | ❌ | | | ||
| ALTER EVENT TRIGGER | ❌ | ❌ | | | ||
| ALTER EXTENSION | ❌ | ❌ | | | ||
| ALTER FOREIGN DATA WRAPPER | ❌ | ❌ | | | ||
| ALTER FOREIGN TABLE | ❌ | ❌ | | | ||
| ALTER FUNCTION | ✅ | ❌ | | | ||
| ALTER INDEX | ✅ | ❌ | | | ||
| ALTER LANGUAGE | ✅ | ❌ | | | ||
| ALTER LARGE OBJECT | ❌ | ❌ | | | ||
| ALTER MATERIALIZED VIEW | ✅ | ❌ | | | ||
| ALTER OPERATOR | ❌ | ❌ | | | ||
| ALTER OPERATOR CLASS | ❌ | ❌ | | | ||
| ALTER OPERATOR FAMILY | ❌ | ❌ | | | ||
| ALTER POLICY | ❌ | ❌ | | | ||
| ALTER PROCEDURE | ✅ | ❌ | | | ||
| ALTER PUBLICATION | ❌ | ❌ | | | ||
| ALTER ROUTINE | ❌ | ❌ | | | ||
| ALTER RULE | ❌ | ❌ | | | ||
| ALTER SCHEMA | ✅ | ❌ | | | ||
| ALTER SEQUENCE | ✅ | ❌ | | | ||
| ALTER SERVER | ❌ | ❌ | | | ||
| ALTER STATISTICS | ❌ | ❌ | | | ||
| ALTER SUBSCRIPTION | ❌ | ❌ | | | ||
| ALTER SYSTEM | ❌ | ❌ | | | ||
| ALTER TABLE | ✅ | ❌ | | | ||
| ALTER TABLESPACE | ❌ | ❌ | | | ||
| ALTER TEXT SEARCH CONFIGURATION | ❌ | ❌ | | | ||
| ALTER TEXT SEARCH DICTIONARY | ❌ | ❌ | | | ||
| ALTER TEXT SEARCH PARSER | ❌ | ❌ | | | ||
| ALTER TEXT SEARCH TEMPLATE | ❌ | ❌ | | | ||
| ALTER TRIGGER | ✅ | ❌ | | | ||
| ALTER TYPE | ✅ | ❌ | | | ||
| ALTER VIEW | ✅ | ❌ | | | ||
| COMMENT | ✅ | ❌ | | | ||
| CREATE ACCESS METHOD | ❌ | ❌ | | | ||
| CREATE AGGREGATE | ✅ | ❌ | | | ||
| CREATE CAST | ❌ | ❌ | | | ||
| CREATE COLLATION | ❌ | ❌ | | | ||
| CREATE CONVERSION | ❌ | ❌ | | | ||
| CREATE DATABASE | ✅ | 🟠 | | | ||
| CREATE DOMAIN | ✅ | ❌ | | | ||
| CREATE EVENT TRIGGER | ❌ | ❌ | | | ||
| CREATE EXTENSION | ✅ | ❌ | | | ||
| CREATE FOREIGN DATA WRAPPER | ❌ | ❌ | | | ||
| CREATE FOREIGN TABLE | ❌ | ❌ | | | ||
| CREATE FUNCTION | ✅ | ❌ | | | ||
| CREATE INDEX | ✅ | ❌ | | | ||
| CREATE LANGUAGE | ✅ | ❌ | | | ||
| CREATE MATERIALIZED VIEW | ✅ | ❌ | | | ||
| CREATE OPERATOR | ❌ | ❌ | | | ||
| CREATE OPERATOR CLASS | ❌ | ❌ | | | ||
| CREATE OPERATOR FAMILY | ❌ | ❌ | | | ||
| CREATE POLICY | ❌ | ❌ | | | ||
| CREATE PROCEDURE | ✅ | ❌ | | | ||
| CREATE PUBLICATION | ❌ | ❌ | | | ||
| CREATE RULE | ❌ | ❌ | | | ||
| CREATE SCHEMA | ✅ | ❌ | | | ||
| CREATE SEQUENCE | ✅ | ❌ | | | ||
| CREATE SERVER | ❌ | ❌ | | | ||
| CREATE STATISTICS | ❌ | ❌ | | | ||
| CREATE SUBSCRIPTION | ❌ | ❌ | | | ||
| CREATE TABLE | ✅ | 🟠 | | | ||
| CREATE TABLESPACE | ❌ | ❌ | | | ||
| CREATE TEXT SEARCH CONFIGURATION | ❌ | ❌ | | | ||
| CREATE TEXT SEARCH DICTIONARY | ❌ | ❌ | | | ||
| CREATE TEXT SEARCH PARSER | ❌ | ❌ | | | ||
| CREATE TEXT SEARCH TEMPLATE | ❌ | ❌ | | | ||
| CREATE TRANSFORM | ❌ | ❌ | | | ||
| CREATE TRIGGER | ✅ | ❌ | | | ||
| CREATE TYPE | ✅ | ❌ | | | ||
| CREATE VIEW | ✅ | ❌ | | | ||
| DROP ACCESS METHOD | ❌ | ❌ | | | ||
| DROP AGGREGATE | ✅ | ❌ | | | ||
| DROP CAST | ❌ | ❌ | | | ||
| DROP COLLATION | ❌ | ❌ | | | ||
| DROP CONVERSION | ❌ | ❌ | | | ||
| DROP DATABASE | ✅ | 🟠 | | | ||
| DROP DOMAIN | ✅ | ❌ | | | ||
| DROP EVENT TRIGGER | ❌ | ❌ | | | ||
| DROP EXTENSION | ✅ | ❌ | | | ||
| DROP FOREIGN DATA WRAPPER | ❌ | ❌ | | | ||
| DROP FOREIGN TABLE | ❌ | ❌ | | | ||
| DROP FUNCTION | ✅ | ❌ | | | ||
| DROP INDEX | ✅ | 🟠 | | | ||
| DROP LANGUAGE | ✅ | ❌ | | | ||
| DROP MATERIALIZED VIEW | ✅ | 🟠 | | | ||
| DROP OPERATOR | ❌ | ❌ | | | ||
| DROP OPERATOR CLASS | ❌ | ❌ | | | ||
| DROP OPERATOR FAMILY | ❌ | ❌ | | | ||
| DROP OWNED | ❌ | ❌ | | | ||
| DROP POLICY | ❌ | ❌ | | | ||
| DROP PROCEDURE | ✅ | ❌ | | | ||
| DROP PUBLICATION | ❌ | ❌ | | | ||
| DROP ROUTINE | ❌ | ❌ | | | ||
| DROP RULE | ❌ | ❌ | | | ||
| DROP SCHEMA | ✅ | ❌ | | | ||
| DROP SEQUENCE | ✅ | ❌ | | | ||
| DROP SERVER | ❌ | ❌ | | | ||
| DROP STATISTICS | ❌ | ❌ | | | ||
| DROP SUBSCRIPTION | ❌ | ❌ | | | ||
| DROP TABLE | ✅ | 🟠 | | | ||
| DROP TABLESPACE | ❌ | ❌ | | | ||
| DROP TEXT SEARCH CONFIGURATION | ❌ | ❌ | | | ||
| DROP TEXT SEARCH DICTIONARY | ❌ | ❌ | | | ||
| DROP TEXT SEARCH PARSER | ❌ | ❌ | | | ||
| DROP TEXT SEARCH TEMPLATE | ❌ | ❌ | | | ||
| DROP TRANSFORM | ❌ | ❌ | | | ||
| DROP TRIGGER | ✅ | 🟠 | | | ||
| DROP TYPE | ✅ | ❌ | | | ||
| DROP VIEW | ✅ | 🟠 | | | ||
| SECURITY LABEL | ❌ | ❌ | | | ||
|
||
## Data manipulation statements | ||
|
||
| SQL Commands | Parses | Works | Notes and limitations | | ||
|:--------------------------|:------:|:-----:|:----------------------| | ||
| CALL | ✅ | ✅ | | | ||
| CLOSE | ❌ | ❌ | | | ||
| CREATE TABLE AS | ✅ | ❌ | | | ||
| CLUSTER | ❌ | ❌ | | | ||
| COPY | ❌ | ❌ | | | ||
| DECLARE | ❌ | ❌ | | | ||
| DELETE | 🟠 | 🟠 | | | ||
| DO | ❌ | ❌ | | | ||
| FETCH | ❌ | ❌ | | | ||
| IMPORT FOREIGN SCHEMA | ❌ | ❌ | | | ||
| INSERT | 🟠 | 🟠 | | | ||
| LOAD | ❌ | ❌ | | | ||
| MERGE | ❌ | ❌ | | | ||
| MOVE | ❌ | ❌ | | | ||
| REFRESH MATERIALIZED VIEW | ✅ | ❌ | | | ||
| REINDEX | ❌ | ❌ | | | ||
| SELECT | 🟠 | 🟠 | | | ||
| SELECT INTO | ❌ | ❌ | | | ||
| TRUNCATE | 🟠 | 🟠 | | | ||
| UPDATE | 🟠 | 🟠 | | | ||
| VACUUM | ❌ | ❌ | | | ||
| VALUES | 🟠 | 🟠 | | | ||
|
||
## Prepared statements | ||
|
||
| SQL Commands | Parses | Works | Notes and limitations | | ||
|:-------------|:------:|:-----:|:----------------------| | ||
| DEALLOCATE | ✅ | ❌ | | | ||
| PREPARE | ✅ | ❌ | | | ||
| EXECUTE | ✅ | ❌ | | | ||
|
||
## Session management statements | ||
|
||
| SQL Commands | Parses | Works | Notes and limitations | | ||
|:--------------------------|:------:|:-----:|:----------------------| | ||
| DISCARD | 🟠 | ❌ | | | ||
| RESET | ✅ | ❌ | | | ||
| SET | ✅ | 🟠 | | | ||
| SET CONSTRAINTS | ✅ | ❌ | | | ||
| SET ROLE | ✅ | ❌ | | | ||
| SET SESSION AUTHORIZATION | ✅ | ❌ | | | ||
| SET TRANSACTION | 🟠 | ❌ | | | ||
| SHOW | ✅ | 🟠 | | | ||
|
||
## Transactional statements | ||
|
||
| SQL Commands | Parses | Works | Notes and limitations | | ||
|:----------------------|:------:|:-----:|:----------------------| | ||
| ABORT | ✅ | ✅ | | | ||
| BEGIN | 🟠 | 🟠 | | | ||
| CHECKPOINT | ❌ | ❌ | | | ||
| COMMIT | ✅ | ✅ | | | ||
| COMMIT PREPARED | ❌ | ❌ | | | ||
| END | ✅ | ✅ | | | ||
| LISTEN | ❌ | ❌ | | | ||
| LOCK | ❌ | ❌ | | | ||
| NOTIFY | ❌ | ❌ | | | ||
| PREPARE TRANSACTION | ❌ | ❌ | | | ||
| RELEASE SAVEPOINT | ✅ | ✅ | | | ||
| ROLLBACK | ✅ | ✅ | | | ||
| ROLLBACK PREPARED | ❌ | ❌ | | | ||
| ROLLBACK TO SAVEPOINT | ✅ | ✅ | | | ||
| SAVEPOINT | ✅ | ✅ | | | ||
| START TRANSACTION | 🟠 | 🟠 | | | ||
| UNLISTEN | ❌ | ❌ | | | ||
|
||
## Utility statements | ||
|
||
| SQL Commands | Parses | Works | Notes and limitations | | ||
|:-------------|:------:|:-----:|:----------------------| | ||
| ANALYZE | ❌ | ❌ | | | ||
| EXPLAIN | ❌ | ❌ | | |