error on „ 38.5. Query Language (SQL) Functions“: a single row is returned

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: code(at)lhorn(dot)de
Subject: error on „ 38.5. Query Language (SQL) Functions“: a single row is returned
Date: 2022-09-18 08:44:37
Message-ID: 166349067787.658.11227272900830206613@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/14/xfunc-sql.html
Description:

On the page „ 38.5. Query Language (SQL) Functions“ below the example

CREATE FUNCTION new_emp() RETURNS emp AS $$
SELECT ROW('None', 1000.0, 25, '(2,2)')::emp;
$$ LANGUAGE SQL;

this sentence is wrong:

„ Here we wrote a SELECT that returns just a single column of the correct
composite type.“

It is not a single column but a single row that is returned.

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2022-09-18 15:01:04 Re: error on „ 38.5. Query Language (SQL) Functions“: a single row is returned
Previous Message PG Doc comments form 2022-09-16 20:08:04 JSON/JSONB documentation, aggregate functions