Re: error on „ 38.5. Query Language (SQL) Functions“: a single row is returned - Mailing list pgsql-docs

From Tom Lane
Subject Re: error on „ 38.5. Query Language (SQL) Functions“: a single row is returned
Date
Msg-id 157902.1663513264@sss.pgh.pa.us
Whole thread Raw
In response to error on „ 38.5. Query Language (SQL) Functions“: a single row is returned  (PG Doc comments form <noreply@postgresql.org>)
List pgsql-docs
PG Doc comments form <noreply@postgresql.org> writes:
> 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.

It's also a single column, which is more relevant to the point being
made.  Compare this to the immediately preceding example.

            regards, tom lane



pgsql-docs by date:

Previous
From: PG Doc comments form
Date:
Subject: error on „ 38.5. Query Language (SQL) Functions“: a single row is returned
Next
From: "Daniel Westermann (DWE)"
Date:
Subject: Are we really using 23 bytes on most machines?