Re: Toast table infi

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Sathish Reddy <sathishreddy(dot)postgresql(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Toast table infi
Date: 2024-05-27 10:42:30
Message-ID: 87e6e5d0a3b2af9364efa9b43715b3edf7f11449.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, 2024-05-27 at 15:16 +0530, Sathish Reddy wrote:
> I am looking for all toast tables with size from cluster level all databases.
> it need to perform as like pg_stat_activity

SELECT oid::regclass,
pg_relation_size(oid)
FROM pg_class
WHERE relkind = 't'
AND relnamespace = 'pg_toast'::regnamespace;

That will show you all TOAST tables from the current database.

You have to connect to all databases and run the query in each one.

Yours,
Laurenz Albe

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Prasanth 2024-05-28 14:50:47 Postgresql streaming replication
Previous Message Sathish Reddy 2024-05-27 09:46:11 Re: Toast table infi