PG query to count all objects

From: Prashant Kulkarni <ppk10(dot)prashant(at)gmail(dot)com>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: PG query to count all objects
Date: 2020-04-02 08:48:42
Message-ID: CAOLrvP6na3Qddia=brN_-WtJNeuXiSPOAByaZ-03W6gr7Lr3Zw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Team,

Please can you help me with a query in PostgreSQL which will list the count
of all objects in the database with respect (group by) object types
( Table/
Index/Mview/Partition/Subpartition/Sequece/Lob/Procedure/Functions/..../etc)

Thanks.

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ashutosh Sharma 2020-04-02 10:55:01 Re: PG query to count all objects
Previous Message Ramakrishna Chava 2020-04-02 02:31:42 Re: Can not make further subscriptions