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 1uycil-00AW4I-V3 for pgsql-docs@arkaria.postgresql.org; Tue, 16 Sep 2025 20:56: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 1uycii-002WtL-GJ for pgsql-docs@arkaria.postgresql.org; Tue, 16 Sep 2025 20:56:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uycii-002WtD-8D for pgsql-docs@lists.postgresql.org; Tue, 16 Sep 2025 20:56:13 +0000 Received: from forward500d.mail.yandex.net ([178.154.239.208]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uycid-000mnw-1F for pgsql-docs@lists.postgresql.org; Tue, 16 Sep 2025 20:56:12 +0000 Received: from mail-nwsmtp-smtp-production-main-63.klg.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-63.klg.yp-c.yandex.net [IPv6:2a02:6b8:c42:4f41:0:640:844:0]) by forward500d.mail.yandex.net (Yandex) with ESMTPS id 4DF9D81CC1; Tue, 16 Sep 2025 23:56:03 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-63.klg.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id xtXhHS2L3Ko0-YQJuVxUX; Tue, 16 Sep 2025 23:56:02 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1758056162; bh=LPKzCjDfQn5xC9LQlLE0sDnDTdcFtlpWhfeGxIcEH1g=; h=Subject:Message-ID:References:To:From:In-Reply-To:CC:Date; b=MacXWIaXqkTQNjb3/+Q00zMjoEJ3eXVQsi2tdR6+zsehbJP5C77z5F3PcFt1Y2mTi +EmgBw4NXaDHcF/gf2prSGfythHP92kP/D2SZNOoWGyuktweMjPruXWrCJ/0pwmwpw NdT0UORjqMrR0W4kQ698v3mEtqUR02I1A/H+N+YU= Authentication-Results: mail-nwsmtp-smtp-production-main-63.klg.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Date: Tue, 16 Sep 2025 16:55:58 -0400 From: Eugen Konkov Message-ID: <1228315805.20250916165558@yandex.ru> To: Tom Lane CC: pgsql-docs@lists.postgresql.org Subject: Re: The document contains false statements In-Reply-To: <310870.1757805908@sss.pgh.pa.us> References: <175779557876.861.12514976006917547591@wrigleys.postgresql.org> <310870.1757805908@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello Tom, Saturday, September 13, 2025, 7:25:08 PM, you wrote: > 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 Let me continue how to improve this in David G. thread. -- Best regards, Eugen Konkov