statistics target for columns in unique constraint?

Поиск
Список
Период
Сортировка
От ach
Тема statistics target for columns in unique constraint?
Дата
Msg-id 1368457293547-5755256.post@n5.nabble.com
обсуждение исходный текст
Ответы Re: statistics target for columns in unique constraint?  (Marti Raudsepp <marti@juffo.org>)
Список pgsql-performance
I have a unique constraint on two columns of a supermassive table (est. 1.7
bn rows) that are the only way the table's ever queried - and it's
blindingly fast: 51ms to retrieve any single row even non-partitioned.

Anyway:  Right now statistics on the two unique constrained columns are set
to 200 each (database-wide default is 100), and what I'm wondering is, since
the unique constraint already covers the whole table and all rows in
entirety, is it really necessary for statistics to be set that high on
those?  Or does that only serve to slow down inserts to that table?



--
View this message in context:
http://postgresql.1045698.n5.nabble.com/statistics-target-for-columns-in-unique-constraint-tp5755256.html
Sent from the PostgreSQL - performance mailing list archive at Nabble.com.


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

Предыдущее
От: "Desbiens, Eric"
Дата:
Сообщение: Lock and pg_stat
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Setting vacuum_freeze_min_age really low