Re: plpython does not honour max-rows

Поиск
Список
Период
Сортировка
От Kieran McCusker
Тема Re: plpython does not honour max-rows
Дата
Msg-id CAGgUQ6FMfBrCTeu7DLUmmsSVn0zu02mx7xZ39etb26pAqTrM+w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: plpython does not honour max-rows  (Daniel Gustafsson <daniel@yesql.se>)
Ответы Re: plpython does not honour max-rows  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Without making too much of a fuss, wouldn't it be simpler to honour a row-limit of zero rather than document that it doesn't work?

On Tue, 2 May 2023 at 12:48, Daniel Gustafsson <daniel@yesql.se> wrote:
> 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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: plpython does not honour max-rows
Следующее
От: Vaclav Pink
Дата:
Сообщение: RE: BUG #17906: Segmentation fault and database crash during procedure call