Missing RETURNS clause in function declaration

Started by Nonamealmost 9 years ago2 messagesdocs
Jump to latest
#1Noname
ivan.ciobotar@gmail.com

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.

--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Noname (#1)
Re: Missing RETURNS clause in function declaration

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

--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs