Statistics collection question

Поиск
Список
Период
Сортировка
От Phoenix Kiula
Тема Statistics collection question
Дата
Msg-id e373d31e0709030608h590e3d52t3efd8c3d19d28e28@mail.gmail.com
обсуждение исходный текст
Ответы Re: Statistics collection question  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
A couple of questions about the "most_common_vals" stuff in pg_stats
for a high traffic table:

1. Can I tell the stats collector to collect only values of a column
where a certain regex is matched? It is currently collecting the 500
values where most of them are values that I don't want, so it's
polluted with unwanted vals and therefore useless.

2. Secondly, for a unique column in the table, will the
"most_common_vals" always be -1? I guess this could make sense, but I
was wondering if the stats collector could somehow collect at least
1000 unique values to improve at least some performance.

TIA!

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

Предыдущее
От: tkdchen
Дата:
Сообщение: Cannot install under Windows Vista
Следующее
От: Andreas Tille
Дата:
Сообщение: Connecting to PostgreSQL server with Mono using ident authetication