Re: abnormal data grow

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: reynardh(at)lightsky(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: abnormal data grow
Date: 2004-09-21 16:31:59
Message-ID: 1790.1095784319@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Reynard Hilman <reynardmh(at)lightsky(dot)com> writes:
> following Tom's advice, this query:
> select relname from pg_class where relfilenode = 25677563;
> returns pg_toast_25677561 which is the record in pg_class that has the biggest relpages, so that makes sense.

Okay, so you have a lot of wide (toasted) fields in whatever table that
toast table belongs to --- if you're not sure, try

select relname from pg_class where
reltoastrelid = (select oid from pg_class where relfilenode = 25677563);

VACUUM VERBOSE on that table would give some useful info.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shah, Sameer 2004-09-21 17:01:21 Oracle / Postgres Interface
Previous Message Kundham Saare 2004-09-21 16:16:39 proxying connections