| От | Reg Me Please |
|---|---|
| Тема | Re: Variable LIMIT and OFFSET in SELECTs |
| Дата | |
| Msg-id | 200711151948.18678.regmeplease@gmail.com обсуждение исходный текст |
| Ответ на | Re: Variable LIMIT and OFFSET in SELECTs (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Variable LIMIT and OFFSET in SELECTs
|
| Список | pgsql-general |
Sorry but I don't understand.
Either the LIMIT and OFFSET are to be definitely CONSTANT or not.
In the SQL function body the LIMIT and the OFFSET *are definitely not*
CONSTANT. And the planner can do its job at best as usual.
As Sam says I should be able to "put an IMMUTABLE expression into a LIMIT or
OFFSET". And under some circumstances (SQL function body) it's true even with
VARIABLE expressions like function call arguments.
In my opinion I would say it's more a problem with the syntax checker that
with the planner ("semantics" in my lingo). But I could be wrong.
--
Reg me Please
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера