Re: return type marked optional but isn't

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: return type marked optional but isn't
Дата
Msg-id CAKFQuwZ03akGQrj2E3yTaUc3k60QB4_H2fUEYFqX5UhdN7hCrw@mail.gmail.com
обсуждение исходный текст
Ответ на return type marked optional but isn't  (PG Doc comments form <noreply@postgresql.org>)
Список pgsql-docs
On Wed, Feb 21, 2024 at 10:10 AM PG Doc comments form <noreply@postgresql.org> wrote:
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/13/sql-createfunction.html
Description:

the documentation for creating a function shows [ RETURNS rettype | RETURNS
TABLE ( column_name column_type [, ...] ) ] but returns is not optional. At
least when specifying LANGUAGE plpgsql. All the online advice suggests
specifying RETURNS void as the solution.

As with most conditionally option things in the docs reading the description for the item tells you when it can be omitted.

rettype: "When there are OUT or INOUT parameters, the RETURNS clause can be omitted."

David J.

В списке pgsql-docs по дате отправления:

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: return type marked optional but isn't
Следующее
От: Erik Wienhold
Дата:
Сообщение: Re: [PATCH] Fix link to pg_ident_file_mappings