From: Daniel Gustafsson <daniel@yesql.se>
To: Kieran McCusker <kieran.mccusker@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: plpython does not honour max-rows
Date: Tue, 2 May 2023 13:48:46 +0200
Message-ID: <D2132F23-B3AF-4D98-9859-BC2B64A599EC@yesql.se> (raw)
In-Reply-To: <CAGgUQ6GBpw-vkzxuuTk3au8Hq+YezG5sv3yR=YjE3CbOqp-a3Q@mail.gmail.com>
References: <CAGgUQ6H6qYScctOhktQ9HLFDDoafBKHyUgJbZ6q_dOApnzNTXg@mail.gmail.com>
<711512C7-2BC2-4901-A368-6A5A23023F72@yesql.se>
<CAGgUQ6GBpw-vkzxuuTk3au8Hq+YezG5sv3yR=YjE3CbOqp-a3Q@mail.gmail.com>
> On 2 May 2023, at 13:37, Kieran McCusker <kieran.mccusker@gmail.com> wrote:
> Thanks for the quick response. Chapter 46.6.1 says that max-rows is an optional row limit. Unless I missed it there is nothing in the documentation about zero meaning all rows. Wouldn't it rather be like SQL LIMIT 0 meaning all rows?
That does sound like something which we should document, the confusion is easy
to see. Thanks for the report.
FTR I think I misremembered in my earlier email, it's == 0 and not <= 0 which
implies to limit.
--
Daniel Gustafsson
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: daniel@yesql.se, kieran.mccusker@gmail.com
Subject: Re: plpython does not honour max-rows
In-Reply-To: <D2132F23-B3AF-4D98-9859-BC2B64A599EC@yesql.se>
References: <CAGgUQ6H6qYScctOhktQ9HLFDDoafBKHyUgJbZ6q_dOApnzNTXg@mail.gmail.com> <711512C7-2BC2-4901-A368-6A5A23023F72@yesql.se> <CAGgUQ6GBpw-vkzxuuTk3au8Hq+YezG5sv3yR=YjE3CbOqp-a3Q@mail.gmail.com> <D2132F23-B3AF-4D98-9859-BC2B64A599EC@yesql.se>
* 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