Re: MACADDR types NULL value (undocumented?)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: MACADDR types NULL value (undocumented?)
Дата
Msg-id 28335.985617927@sss.pgh.pa.us
обсуждение исходный текст
Ответ на RE: MACADDR types NULL value (undocumented?)  ("Mayers, Philip J" <p.mayers@ic.ac.uk>)
Список pgsql-general
"Mayers, Philip J" <p.mayers@ic.ac.uk> writes:
> Oops, yes, you're quite correct: There are some 17700 entries in the table,
> with 1793 being 00:00:00:00:00:00 - and that warrants a sequential scan,
> you're correct. Damn :o)

If these all-zero entries (a) are really dummy values ("don't know" or
"not applicable"), and (b) outnumber any specific real entry, then it
would be worth your while to replace them with NULLs.  The statistics
stuff accounts for NULLs separately from not-nulls, so after a vacuum
analyze you'd find the planner more able to make an intelligent choice
about seq vs index scan on this table.

            regards, tom lane

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

Предыдущее
От: "Mitch Vincent"
Дата:
Сообщение: Re: Free Text Search
Следующее
От: "Mayers, Philip J"
Дата:
Сообщение: RE: MACADDR types NULL value (undocumented?)