cockroachdb / cockroachdb/cockroach

plpgsql: tracking issue for unimplemented statements

Open
#117,744 0 comments 0 reactions 0 assignees View on GitHub
A-sql-plpgsql C-enhancement docs-done docs-known-limitation meta-issue T-sql-queries
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

This issue tracks adding support for unimplemented PL/pgSQL statements.
NOTE: limitations for partially implemented statements are not included, and are tracked elsewhere.

**Basic statements**
- [ ] [PERFORM](https://www.postgresql.org/docs/current/plpgsql-statements.html#PLPGSQL-STATEMENTS-GENERAL-SQL) #108416
- [ ] [EXECUTE](https://www.postgresql.org/docs/current/plpgsql-statements.html#PLPGSQL-STATEMENTS-GENERAL-SQL) #115300
- [ ] [GET DIAGNOSTICS](https://www.postgresql.org/docs/current/plpgsql-statements.html#PLPGSQL-STATEMENTS-GENERAL-SQL) #117410
- [x] [NULL](https://www.postgresql.org/docs/current/plpgsql-statements.html#PLPGSQL-STATEMENTS-GENERAL-SQL)

**Control Structures**
- [ ] [RETURN NEXT/QUERY](https://www.postgresql.org/docs/current/plpgsql-control-structures.html#PLPGSQL-STATEMENTS-RETURNING-RETURN-NEXT)
- [x] [CALL](https://www.postgresql.org/docs/current/plpgsql-control-structures.html#PLPGSQL-STATEMENTS-CALLING-PROCEDURE) #120818
- [ ] [CASE](https://www.postgresql.org/docs/current/plpgsql-control-structures.html#PLPGSQL-CONDITIONALS-SIMPLE-CASE)
- [ ] [FOR (integer variant)](https://www.postgresql.org/docs/current/plpgsql-control-structures.html#PLPGSQL-INTEGER-FOR) #105246
- [ ] [FOR (query variant)](https://www.postgresql.org/docs/current/plpgsql-control-structures.html#PLPGSQL-RECORDS-ITERATING)
- [ ] [FOREACH](https://www.postgresql.org/docs/current/plpgsql-control-structures.html#PLPGSQL-FOREACH-ARRAY) #163147
- [x] [DECLARE/BEGIN (nested)](https://www.postgresql.org/docs/current/plpgsql-structure.html#PLPGSQL-STRUCTURE) #114775

**Cursors**
- [ ] [OPEN FOR EXECUTE](https://www.postgresql.org/docs/current/plpgsql-cursors.html#PLPGSQL-CURSOR-OPENING-OPEN-FOR-EXECUTE)
- [ ] [FOR IN](https://www.postgresql.org/docs/current/plpgsql-cursors.html#PLPGSQL-CURSOR-OPENING-OPEN-FOR-EXECUTE) #115296

**Transaction Management**
- [x] [COMMIT and ROLLBACK](https://www.postgresql.org/docs/current/plpgsql-transactions.html#PLPGSQL-TRANSACTIONS) #115294

**Errors and Messages**
- [ ] [ASSERT](https://www.postgresql.org/docs/current/plpgsql-errors-and-messages.html#PLPGSQL-STATEMENTS-ASSERT)

Jira issue: CRDB-35330
Epic: [CRDB-34165](https://cockroachlabs.atlassian.net/browse/CRDB-34165)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.