From: Tom Lane <tgl@sss.pgh.pa.us>
To: code@lhorn.de
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: error on „ 38.5. Query Language (SQL) Functions“: a single row is returned
Date: Sun, 18 Sep 2022 11:01:04 -0400
Message-ID: <157902.1663513264@sss.pgh.pa.us> (raw)
In-Reply-To: <166349067787.658.11227272900830206613@wrigleys.postgresql.org>
References: <166349067787.658.11227272900830206613@wrigleys.postgresql.org>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: tgl@sss.pgh.pa.us, code@lhorn.de, pgsql-docs@lists.postgresql.org
Subject: Re: error on „ 38.5. Query Language (SQL) Functions“: a single row is returned
In-Reply-To: <157902.1663513264@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox