Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uxZcK-00Fn7O-Ic for pgsql-docs@arkaria.postgresql.org; Sat, 13 Sep 2025 23:25:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uxZcH-006jjx-Dj for pgsql-docs@arkaria.postgresql.org; Sat, 13 Sep 2025 23:25:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uxZcH-006jjo-69 for pgsql-docs@lists.postgresql.org; Sat, 13 Sep 2025 23:25:13 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uxZcD-000eyi-1u for pgsql-docs@lists.postgresql.org; Sat, 13 Sep 2025 23:25:13 +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 58DNP8ib310871; Sat, 13 Sep 2025 19:25:09 -0400 From: Tom Lane To: kes-kes@yandex.ru cc: pgsql-docs@lists.postgresql.org Subject: Re: The document contains false statements In-reply-to: <175779557876.861.12514976006917547591@wrigleys.postgresql.org> References: <175779557876.861.12514976006917547591@wrigleys.postgresql.org> Comments: In-reply-to PG Doc comments form message dated "Sat, 13 Sep 2025 20:32:58 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <310869.1757805908.1@sss.pgh.pa.us> Date: Sat, 13 Sep 2025 19:25:08 -0400 Message-ID: <310870.1757805908@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/17/sql-createfunction.html > Description: >> This is effectively another way of declaring a named OUT parameter > Actually OUT works twice slower in compare to RETURNS TABLE You stopped reading halfway through that sentence... it says This is effectively another way of declaring a named OUT parameter, except that RETURNS TABLE also implies RETURNS SETOF. The difference between a set-returning and not-set-returning function might explain what you're seeing, particularly because the rules for inlining SQL functions are different in the two cases. A documentation comment is not the place to pursue this further, but you could ask for help on our pgsql-performance mailing list. regards, tom lane