SQL-standard function bodies
Function and procedure bodies given as parsed SQL with BEGIN ATOMIC or RETURN, stored as trees with tracked dependencies. Introduced in PostgreSQL 14.
Versions
- PostgreSQL 19 · shipped · new · moderate · 4 commits · +329 / -81 lines
Threads
- [DEPARSE] Parameters in SQL-standard function bodies do not read back
- BUG #19848: BEGIN ATOMIC with unnamed/OUT params breaks restore and pg_upgrade
- Add notification on BEGIN ATOMIC SQL functions using temp relations
- [PATCH] Add error_on_null() to produce an error if the input is null
- BUG #19072: New-style SQL language function referencing a temp table behaves oddly
- BUG #19034: Recursive function with sql_body can replace an existing function but can not be created on it's own
- Assert single row returning SQL-standard functions
- Converting contrib SQL functions to new style
- INFORMATION_SCHEMA.routines column routine_definition does not show the source
- BUG #18449: Altering column type fails when an SQL routine depends on the column
- Parsing error with begin atomic syntax used in a do block
- INFORMATION_SCHEMA.routine_column_usage
- Error when using unquoted identifier that contains the word end in a begin atomic block
- [BUG] pg_dump does not properly deal with BEGIN ATOMIC function
- psql 14.7/15.2 report a bogus syntax error on function and procedure files that use BEGIN ATOMIC
- SQL-standard function bodies and creating SECURITY DEFINER routines securely
- References to parameters by name are lost in INSERT INTO ... SELECT <parameter value> .... statements in case of routines with the SQL-standard function body
- SQL-standard function body
- Converting built-in SQL functions to new style
- Routine usage information schema tables
- Make LANGUAGE SQL the default