Re: is it helpful for the optimiser/planner to add LIMIT 1

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: is it helpful for the optimiser/planner to add LIMIT 1
Дата
Msg-id 29407.1207233236@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: is it helpful for the optimiser/planner to add LIMIT 1  (Gregory Stark <stark@enterprisedb.com>)
Ответы Re: is it helpful for the optimiser/planner to add LIMIT 1
Список pgsql-general
Gregory Stark <stark@enterprisedb.com> writes:
> You could fix that more cleanly with "ALTER FUNCTION myfunction ROWS 1" but
> only if that's always true, not just for myfunction(3,5).

Perhaps the function shouldn't be declared SETOF in the first place?

            regards, tom lane

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

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: is it helpful for the optimiser/planner to add LIMIT 1
Следующее
От: Ivan Sergio Borgonovo
Дата:
Сообщение: Re: is it helpful for the optimiser/planner to add LIMIT 1