Re: Force index usage on bigint in PL/PGSQL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Force index usage on bigint in PL/PGSQL
Дата
Msg-id 15176.1042732890@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Force index usage on bigint in PL/PGSQL  (Federico Pedemonte <fepede@inwind.it>)
Список pgsql-general
Federico Pedemonte <fepede@inwind.it> writes:
> The problem is that i'd like to "force" my plpgsql functions to use
> indexes.
> Is there  a way  I can rewrite  the following plpgsql  query to  use the
> quote-trick ?

> result record;
> orain alias for $1;     -- bigint
> orafin alias for $2;    -- bigint

If $1 and $2 are in fact declared as bigint, then you don't have a
problem.

            regards, tom lane

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

Предыдущее
От: Geert Bevin
Дата:
Сообщение: Unsolveable query?
Следующее
От: "Patrick Fiche"
Дата:
Сообщение: Re: Unsolveable query?