Re: Weird indices

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Weird indices
Дата
Msg-id 12246.982791965@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Weird indices  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-general
Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
> One thing that might be interesting is to see what it does if you tried
> changing stacommonfraq in pg_statistic for that relation after a vacuum
> analyze.  That should change how many rows it thinks the most common value
> has.  I'm not sure of any side effects, but it seems to immediately change
> my row estimates from explain.

AFAIK there aren't any side effects; you can manually twiddle
pg_statistic as much as you like.  Of course, your hacks will get
overwritten at the next vacuum analyze of the table, but if you're
convinced you've got the perfect numbers in there, you could just not
ever do a vacuum analyze ;-)

            regards, tom lane

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

Предыдущее
От: newsreader@mediaone.net
Дата:
Сообщение: DBD::Pg is suddenly acting up!
Следующее
От: brichard@cafod.org.uk (Bruce Richardson)
Дата:
Сообщение: Re: Multiple triggers/rules