Re: Variable LIMIT and OFFSET in SELECTs

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: Variable LIMIT and OFFSET in SELECTs
Дата
Msg-id 162867790711150456ga08c48dwe92bb8ea4410da4c@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Variable LIMIT and OFFSET in SELECTs  (Reg Me Please <regmeplease@gmail.com>)
Список pgsql-general
Hello

LIMIT has impact on execution plan, so there cannot be variables. Use
SRF function and dynamic statements instead.

Regards
Pavel

On 15/11/2007, Reg Me Please <regmeplease@gmail.com> wrote:
> In any case, what'd be the benefit for not allowing "variables" as LIMIT and
> OFFSET argument?
>
> --
> Reg me Please
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match
>

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

Предыдущее
От: Reg Me Please
Дата:
Сообщение: Re: Variable LIMIT and OFFSET in SELECTs
Следующее
От: "Abraham, Danny"
Дата:
Сообщение: Chunk Delete