Re: Toast table infi - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: Toast table infi
Date
Msg-id 87e6e5d0a3b2af9364efa9b43715b3edf7f11449.camel@cybertec.at
Whole thread Raw
In response to Re: Toast table infi  (Sathish Reddy <sathishreddy.postgresql@gmail.com>)
List 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



pgsql-admin by date:

Previous
From: Sathish Reddy
Date:
Subject: Re: Toast table infi
Next
From: Prasanth
Date:
Subject: Postgresql streaming replication