optimizer hints?

Поиск
Список
Период
Сортировка
От Alex Pilosov
Тема optimizer hints?
Дата
Msg-id Pine.BSO.4.10.10106051748500.17529-100000@spider.pilosoft.com
обсуждение исходный текст
Ответы Re: optimizer hints?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Are there any plans to implement some way to force optimizer to decide on
index scan vs table scan _for a specific table_, and to tell optimizer to
use a particular index when operating on a table?

"set seqscan to 'f'" just doesn't do it for me, as I need seqscan in one
case and indexscan in another case inside same query.

Any chance we could have something like
select * from foo(bar), baz(0)

(Where bar is an index on foo, and 0 means don't use any indices.)

I realize the syntax may need to get tweaked a bit, to avoid confusion
with future functions-returning-rels...


Thanks
-alex


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: postgres 7.1 security problem?
Следующее
От: Andrew Gould
Дата:
Сообщение: Re: One question about postgresql