Re: Problems with adding a is not null to a query.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problems with adding a is not null to a query.
Дата
Msg-id 20744.1295297840@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Problems with adding a is not null to a query.  (Tim Uckun <timuckun@gmail.com>)
Ответы Re: Problems with adding a is not null to a query.
Список pgsql-bugs
Tim Uckun <timuckun@gmail.com> writes:
>         relname         | pg_relation_size |  reltuples  | relpages
> ------------------------+------------------+-------------+----------
>  consolidated_urls      |       1303060480 | 1.80192e+06 |   159065
>  consolidated_urls_pkey |        114745344 | 1.80192e+06 |    14007

With a table that large, you're probably going to need a larger stats
target in order to get reasonable estimates for low-frequency values.
Am I right in guessing that pg_stats.n_distinct is much too low for
the domain_id column?

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5840: Updating arrays using subscripted assignment results in uninitialized values
Следующее
От: Tim Uckun
Дата:
Сообщение: Re: Problems with adding a is not null to a query.