Re: pg_class -> reltuples?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_class -> reltuples?
Date: 2002-03-07 22:51:30
Message-ID: 15728.1015541490@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ian Barwick 2002-03-07 23:00:22 Archive search (was: pg_class -> reltuples?)
Previous Message Greg Copeland 2002-03-07 22:48:11 Re: Bad Build