Re: pg_class : reltuples

Поиск
Список
Период
Сортировка
От Sandeep Joshi
Тема Re: pg_class : reltuples
Дата
Msg-id 3A1C2AAB.B1567EA4@zambeel.com
обсуждение исходный текст
Ответ на pg_class : reltuples  (Sandeep Joshi <sjoshi@Zambeel.com>)
Ответы Re: pg_class : reltuples  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I had to run "vacuum" to get corect no.s.  Why is that? I thought
"pg_class" will be upto date.
This makes me nervous.

Sandeep



> What does "reltuples" from pg_class represent?
> any comments
> Here is something that raised this question:
>
> ---------------------------------------
> testdb=# select count(*) from zuser3;
>   count
> ---------
>  1000000
> (1 row)
>
> testdb=#  select count(*) from zuser2;
>  count
> --------
>  100000
> (1 row)
>
> testdb=# select count(*) from zuser1;
>  count
> -------
>   1000

> select relname,relpages,reltuples from pg_class where relname like
> 'zuse%';
>  relname | relpages | reltuples
> ---------+----------+-----------
>  zuser2  |       10 |      1000
>  zuser1  |       10 |      1000
>  zuser3  |       10 |      1000
> (3 rows)
>
> (1 row)

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

Предыдущее
От: George Armhold
Дата:
Сообщение: trouble migrating from 6.3.2 (IRIX) to 7.0.2 (Linux)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: trouble migrating from 6.3.2 (IRIX) to 7.0.2 (Linux)