> On 2 May 2023, at 12:30, Kieran McCusker <kieran(dot)mccusker(at)gmail(dot)com> wrote:
> I came across this when developing a sampling function using plpy.execute that needs to be able to sample zero rows. What actually happens is that zero is ignored for max-rows and all rows are returned.
A max_rows of less than or equal to zero is IIRC interpreted as "fetch all
rows". I think this works as intended, is it documented anywhere to work in
another way?
--
Daniel Gustafsson