Re: SQL-standard function body - Mailing list pgsql-hackers

From Vik Fearing
Subject Re: SQL-standard function body
Date
Msg-id a4f3340a-21e9-1f1c-52c9-17b0c4fef469@postgresfriends.org
Whole thread Raw
In response to Re: SQL-standard function body  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: SQL-standard function body
Re: SQL-standard function body
List pgsql-hackers
On 7/1/20 10:34 PM, Pavel Stehule wrote:
> 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?


ISO/IEC 9075-2:2016 Section 11.60 <SQL-invoked routine>
-- 
Vik Fearing



pgsql-hackers by date:

Previous
From: Michael Banck
Date:
Subject: Re: v12 and TimeLine switches and backups/restores
Next
From: Tom Lane
Date:
Subject: Re: [Patch] Add missing libraries to Libs.private of libpq.pc