Expand description
Source-side parser for CREATE FUNCTION and CREATE PROCEDURE.
Both statements are represented in pg_query by a single
CreateFunctionStmt with an is_procedure: bool discriminant.
This builder dispatches on that flag and returns either a
Routine::Function or a Routine::Procedure.
Body parsing (T2 stub): SQL-language bodies are canonicalized via
NormalizedBody::from_sql; PL/pgSQL bodies fall back to
NormalizedBody::empty because pg_query cannot parse PL/pgSQL.
T4 replaces the fallback with real PL/pgSQL AST parsing.
Enums§
- Routine
- Dispatch output for this builder.