Re: "AND", "OR" and Materialize :((((

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: "AND", "OR" and Materialize :((((
Дата
Msg-id 18622.998841083@sss.pgh.pa.us
обсуждение исходный текст
Ответ на "AND", "OR" and Materialize :((((  (Meszaros Attila <tilla@draconis.elte.hu>)
Ответы Re: "AND", "OR" and Materialize :((((
Список pgsql-sql
Meszaros Attila <tilla@draconis.elte.hu> writes:
> WHY SHALL IT MATERIALIZE A CONSTANT RESULT IN A LOOP OF 120000 TIMES ??
> [it would be enough to materialize only once,

Which in fact is exactly what the materialize node is for.  The reported
costs are pretty bogus, but AFAICT the plan is the right thing.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Different Choices For Index/Sequential Scan With And Without A Join In 7.2
Следующее
От: Meszaros Attila
Дата:
Сообщение: Re: "AND", "OR" and Materialize :((((