pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: code@lhorn.de
Subject:  error on „ 38.5. Query Language (SQL) Functions“: a single row is returned
Date: Sun, 18 Sep 2022 08:44:37 +0000
Message-ID: <166349067787.658.11227272900830206613@wrigleys.postgresql.org> (raw)

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.


view thread (2+ messages)  latest in thread

Message-ID: <166349067787.658.11227272900830206613@wrigleys.postgresql.org>
Permalink:  ../166349067787.658.11227272900830206613@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/166349067787.658.11227272900830206613@wrigleys.postgresql.org

 · 

reply

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: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, code@lhorn.de
  Subject: Re:  error on „ 38.5. Query Language (SQL) Functions“: a single row is returned
  In-Reply-To: <166349067787.658.11227272900830206613@wrigleys.postgresql.org>

* 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