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 1ptwx8-0005hD-TU for pgsql-bugs@arkaria.postgresql.org; Tue, 02 May 2023 20:50:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ptwx7-00067A-4V for pgsql-bugs@arkaria.postgresql.org; Tue, 02 May 2023 20:50:25 +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 1ptwx6-000671-Sg for pgsql-bugs@lists.postgresql.org; Tue, 02 May 2023 20:50:24 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ptwx3-000BWc-CL for pgsql-bugs@lists.postgresql.org; Tue, 02 May 2023 20:50:23 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 9E6092F7E33E for ; Tue, 2 May 2023 22:50:18 +0200 (CEST) Received: from s934.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 8F16C2E2AECF; Tue, 2 May 2023 22:50:18 +0200 (CEST) Received: from s476.loopia.se (unknown [172.22.191.5]) by s934.loopia.se (Postfix) with ESMTP id 89F537CEA55; Tue, 2 May 2023 22:50:18 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s899.loopia.se ([172.22.191.5]) by s476.loopia.se (s476.loopia.se [172.22.190.16]) (amavisd-new, port 10024) with LMTP id oHu7rhbh-BNG; Tue, 2 May 2023 22:50:18 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from smtpclient.apple (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s899.loopia.se (Postfix) with ESMTPSA id 215402C8BA6B; Tue, 2 May 2023 22:50:18 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Subject: Re: plpython does not honour max-rows From: Daniel Gustafsson In-Reply-To: <2830145.1683059955@sss.pgh.pa.us> Date: Tue, 2 May 2023 22:50:17 +0200 Cc: Kieran McCusker , pgsql-bugs@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <711512C7-2BC2-4901-A368-6A5A23023F72@yesql.se> <2678018.1683036150@sss.pgh.pa.us> <2830145.1683059955@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3696.120.41.1.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 2 May 2023, at 22:39, Tom Lane wrote: >=20 > Daniel Gustafsson writes: >>> On 2 May 2023, at 16:02, Tom Lane wrote: >>> I wonder whether the similar plperl and pltcl wrappers are also >>> documentation-shy here. >=20 >> It seems like they are all a bit thin on explaining this. The = attached diff >> copies the wording (which unsurprisingly is pretty good IMO) into the >> plperl/python/tcl documentation. >=20 > Ah, seems like we set to work on this at the same time :-( Pretty impressive timing across timezones =3D) > I thought that s/max-rows/limit/ would be a good idea, I was actually thinking about that but backed off to not confuse things = with LIMIT. > mainly because > plperl's spi_exec_prepared uses that name as a caller-exposed hash = key. But I didn't realize that, and in light of that I agree that limit is = better. > I'm not especially concerned about the wording otherwise. Neither am I, both are fine I think. -- Daniel Gustafsson