Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZvnE-00008a-PS for pgsql-docs@arkaria.postgresql.org; Sun, 18 Sep 2022 15:01:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oZvnD-0005Qm-Kr for pgsql-docs@arkaria.postgresql.org; Sun, 18 Sep 2022 15:01:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZvnD-0005Qd-DE for pgsql-docs@lists.postgresql.org; Sun, 18 Sep 2022 15:01:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZvnA-0002GT-Dn for pgsql-docs@lists.postgresql.org; Sun, 18 Sep 2022 15:01:10 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 28IF14Rl157903; Sun, 18 Sep 2022 11:01:04 -0400 From: Tom Lane To: code@lhorn.de cc: pgsql-docs@lists.postgresql.org Subject: Re: =?utf-8?q?error_on_=E2=80=9E_38=2E5=2E_Query_Language_=28SQL=29_Functions=E2=80=9C=3A_a_single_row_is_returned?= In-reply-to: <166349067787.658.11227272900830206613@wrigleys.postgresql.org> References: <166349067787.658.11227272900830206613@wrigleys.postgresql.org> Comments: In-reply-to PG Doc comments form message dated "Sun, 18 Sep 2022 08:44:37 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <157901.1663513264.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Sun, 18 Sep 2022 11:01:04 -0400 Message-ID: <157902.1663513264@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Doc comments form 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