From: | PG Doc comments form <noreply(at)postgresql(dot)org> |
---|---|
To: | pgsql-docs(at)lists(dot)postgresql(dot)org |
Cc: | david(dot)g(dot)johnston(at)gmail(dot)com |
Subject: | SETOF specification and default behavior (CREATE FUNCTION) |
Date: | 2021-06-28 15:37:15 |
Message-ID: | 162489463589.697.11530554063646944264@wrigleys.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/13/sql-createfunction.html
Description:
It seems like an oversight that the synopsis for CREATE FUNCTION doesn't
actually show the modifier "SETOF" as a optional literal part of the syntax
but only describes it as a modifier to the data type identifier in the
"rettype" description.
Additionally, its unclear whether there is any other way to specify that a
function returns a set other than using RETURNS SETOF (which is otherwise an
optional clause since you can use OUT arguments instead).
Putting the two together, it is unclear whether writing only "RETURNS SETOF"
is allowed when using OUT arguments. I'm pretty sure it is not due to the
"its a modifier" clause in the description.
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2021-06-28 15:40:29 | Re: Document behaviour of failed sub queries |
Previous Message | PG Doc comments form | 2021-06-28 13:55:34 | Document behaviour of failed sub queries |