Re: WG: Re: Re: select ... where ='' does a seqscan [auf Viren geprueft]

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: WG: Re: Re: select ... where ='' does a seqscan [auf Viren geprueft]
Дата
Msg-id 5083.1093366553@sss.pgh.pa.us
обсуждение исходный текст
Ответ на WG: Re: Re: select ... where ='' does a seqscan [auf Viren geprueft]  (Silvio Matthes <silvio.matthes@xcom.de>)
Список pgsql-general
Silvio Matthes <silvio.matthes@xcom.de> writes:
> 2.) Would it be wiser to change all the empty values to some placeholder
> (e.g. 'empty')?

You're missing the point entirely.  '' is being treated specially
because the planner can see from the column statistics that it occurs a
lot.  Substituting a different value would simply move the problem over
to that value (as soon as you'd done ANALYZE, anyway).

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: select ... where ='' does a seqscan [auf Viren
Следующее
От: Jeff Amiel
Дата:
Сообщение: Re: pg_stat_activity versus ps