Skip site navigation (1) Skip section navigation (2)

Re: pg_total_relation_size() could not open relation with OID X

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Michael Fuhr <mike(at)fuhr(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_total_relation_size() could not open relation with OID X
Date: 2005-09-29 22:02:47
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
I wrote:

> The code is obviously confused between Oid and relfilenode.  The
> calculate_total_relation_size() function gets a relfilenode parameter
> and then tries to call relation_open() with it.  This is wrong.

This is the patch I'm about to apply.  Besides fixing this particular
problem, I made the code include the size of the index of the TOAST
table in pg_total_relation_size().

Alvaro Herrera                         Architect,
"En las profundidades de nuestro inconsciente hay una obsesiva necesidad
de un universo lógico y coherente. Pero el universo real se halla siempre
un paso más allá de la lógica" (Irulan)

In response to

pgsql-hackers by date

Next:From: Mike RylanderDate: 2005-09-29 22:06:00
Subject: Re: Found small issue with OUT params
Previous:From: Tom LaneDate: 2005-09-29 21:50:47
Subject: Re: horology regression test failure

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group