Re: pg_class -> reltuples?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_class -> reltuples?
Дата
Msg-id 15728.1015541490@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_class -> reltuples?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: pg_class -> reltuples?  (Neil Conway <nconway@klamath.dyndns.org>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Neil Conway wrote:
>> Is there a reason why the reltuples column of pg_class is stored as a
>> "real", rather than one of the integer data types?

> That is an excellent question.  I assume it is related to having > 4
> billion rows, but we have int8 for that.

1. We support tables > 4G rows.

2. int8 is not available on all platforms.

3. The only use for reltuples is in the optimizer, which is perfectly  content with approximate values.
        regards, tom lane


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

Предыдущее
От: Greg Copeland
Дата:
Сообщение: Re: Bad Build
Следующее
От: Ian Barwick
Дата:
Сообщение: Archive search (was: pg_class -> reltuples?)