Re: Why does pg_class.reltuples count only live tuples in indexes (after VACUUM runs)?

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: Why does pg_class.reltuples count only live tuples in indexes (after VACUUM runs)?
Дата
Msg-id CAH2-Wzm02=sDM=NZYTcUPXQ2s5FxKSyMCOYywCmOdW_oJ6BuUA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Why does pg_class.reltuples count only live tuples in indexes (after VACUUM runs)?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Why does pg_class.reltuples count only live tuples in indexes (after VACUUM runs)?
Список pgsql-hackers
On Mon, Apr 18, 2022 at 1:10 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> The places where index AMs refer to num_heap_tuples seem to be using
> it as a ceiling on estimated index tuple counts.  Given that we should
> be counting dead index entries, redefining it as you suggest would be
> wrong.

I would argue that it would be correct for the first time -- at least
if we take the behavior within heapam_index_build_range_scan (and
everywhere else) as authoritative. That's a feature, not a bug.

-- 
Peter Geoghegan



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Why does pg_class.reltuples count only live tuples in indexes (after VACUUM runs)?
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Postgres perl module namespace