Re: Returning schema name with table name

From: "Andrus" <kobruleht2(at)hot(dot)ee>
To: "Thomas Markus" <t(dot)markus(at)proventis(dot)net>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Returning schema name with table name
Date: 2008-11-24 13:29:25
Message-ID: 09F54AC29A064A2E9CA51BEFF46EB91B@andrusnotebook
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thomas,

> it shows all except toast entries. for included values see
> http://www.postgresql.org/docs/8.3/static/functions-admin.html#FUNCTIONS-ADMIN-DBSIZE
> function |pg_total_relation_size|(oid)

I'm sorry I was not clear.

For my db your query returns row like

db_owner pg_toast pg_toast_40552_index 1352 kB

It would be nice if query output allows to find which relation contains 1.3
MB toast data.

How to change this query by adding column "parent" which shows parent table
name for toast enties?

Currently we must find this relation manually from OID (40552) contained in
name.

Andrus.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message inf200468 2008-11-24 13:38:51 hola mundo
Previous Message Sam Mason 2008-11-24 12:42:39 literal limits in 8.3