Thread: [DOCS] Missing RETURNS clause in function declaration

[DOCS] Missing RETURNS clause in function declaration

From
ivan.ciobotar@gmail.com
Date:
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.6/static/plpgsql-porting.html
Description:

I'm (very) new to PostgreSQL, so please forgive me if my findings are
incorrect...

On page https://www.postgresql.org/docs/9.6/static/plpgsql-porting.html, the
statement starting with CREATE OR REPLACE FUNCTION cs_parse_url (towards the
middle of the page) is missing the RETURNS clause.

Re: [DOCS] Missing RETURNS clause in function declaration

From
Tom Lane
Date:
ivan.ciobotar@gmail.com writes:
> On page https://www.postgresql.org/docs/9.6/static/plpgsql-porting.html, the
> statement starting with CREATE OR REPLACE FUNCTION cs_parse_url (towards the
> middle of the page) is missing the RETURNS clause.

That's fine --- the OUT parameters implicitly define the return type.

            regards, tom lane