Re: sequencial scans

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: sequencial scans
Дата
Msg-id 1496.994293171@sss.pgh.pa.us
обсуждение исходный текст
Ответ на sequencial scans  ("Vilson farias" <vilson.farias@digitro.com.br>)
Список pgsql-general
"Vilson farias" <vilson.farias@digitro.com.br> writes:
> persona=# explain select * from teste_erro where cod = teste_proc('3138414411','19');
> NOTICE:  QUERY PLAN:
> Seq Scan on teste_erro  (cost=0.00..25.00 rows=10 width=4)
> EXPLAIN

You need to mark the function cachable, else the planner doesn't
believe it's a constant.  See "iscachable" in the CREATE FUNCTION
reference page.

            regards, tom lane

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

Предыдущее
От: Martín Marqués
Дата:
Сообщение: Re: TODO item
Следующее
От: CD Baby
Дата:
Сообщение: PostgreSQL ports post-installation gives core dump?