Re: SQL-standard function body
Pavel Stehule <pavel.stehule@gmail.com>
From: Pavel Stehule <pavel.stehule@gmail.com>
To: Vik Fearing <vik@postgresfriends.org>
Cc: Robert Haas <robertmhaas@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-07-01T20:34:18Z
Lists: pgsql-hackers
st 1. 7. 2020 v 22:31 odesílatel Vik Fearing <vik@postgresfriends.org> napsal: > On 7/1/20 9:32 PM, Pavel Stehule wrote: > > st 1. 7. 2020 v 20:19 odesílatel Vik Fearing <vik@postgresfriends.org> > > napsal: > > > >> On 7/1/20 3:36 PM, Robert Haas wrote: > >>> I actually don't have a very clear idea of what the standard has to > >>> say about SQL-language functions. Does it just say it's a list of > >>> statements, or does it involve variables and control-flow constructs > >>> and stuff like that, too? > >> > >> > >> It's either a single sql statement, or a collection of them between > >> "begin atomic" and "end". There are no variables or flow control > >> constructs or anything like that, just as there are no such things > >> outside of a function. > >> > > > > What is the source of this comment? > > > The SQL Standard. > The SQL Standard is really big, and is very possible so I miss this part. Can you send me a link? Regards Pavel > > > Maybe we are speaking (and thinking) > > about different languages. > > > I think so, yes. > > > > I thought the language of SQL functions (ANSI/SQL) is SQL/PSM. > > > That is something else entirely, and not at all what Peter's patch is > about. > -- > Vik Fearing >
Commits
-
Don't crash on empty statements in SQL-standard function bodies.
- bfeede9fa464 14.0 landed
-
psql: Fix line continuation prompts for unbalanced parentheses
- d9a9f4b4b92a 14.0 landed
-
Provide query source text when parsing a SQL-standard function body.
- 409723365b27 14.0 landed
-
Revert "Cope with NULL query string in ExecInitParallelPlan()."
- 83efce7a1ebc 14.0 landed
-
Undo decision to allow pg_proc.prosrc to be NULL.
- 1111b2668d89 14.0 landed
-
SQL-standard function body
- e717a9a18b2e 14.0 landed
-
Move pg_stat_statements query jumbling to core.
- 5fd9dfa5f50e 14.0 cited
-
Extend SQL function tests lightly
- 11b80d900fe4 14.0 landed