Re: [HACKERS] Bug? relpages, reltuples resets to zero

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: jwieck(at)debis(dot)com
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Bug? relpages, reltuples resets to zero
Date: 1998-10-22 21:16:33
Message-ID: 199810222116.RAA07260@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Hi,
>
> there seems to be a problem with the relation statistics in
> pg_class. Could someone explain why this happens?
>
> doc=> vacuum;
> VACUUM
> doc=> select relname, relpages, reltuples from pg_class
> doc-> where relname = 'doc_wordref';
> relname |relpages|reltuples
> -----------+--------+---------
> doc_wordref| 1099| 136027
> (1 row)
>
> -- ******** That's right
>
> doc=> explain select distinct refpage from doc_wordref
> doc-> where refword ~ '^a';
> NOTICE: QUERY PLAN:
>

Attached is a patch to vacuum.c I would like you to try. I wonder if
dirty pages are somehow never getting written out because of vacuum's
use of transactions.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

Attachment Content-Type Size
unknown_filename text/plain 676 bytes

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Robinson 1998-10-23 02:39:08 6.4 interfaces deadline
Previous Message Bruce Momjian 1998-10-22 21:10:47 Re: [HACKERS] Bug? relpages, reltuples resets to zero