From: | MichaelDBA <MichaelDBA(at)sqlexec(dot)com> |
---|---|
To: | Edwin UY <edwin(dot)uy(at)gmail(dot)com> |
Cc: | pgsql-admin(at)lists(dot)postgresql(dot)org |
Subject: | Re: PostgreSQL Database 'Information' Script - is there one out there? |
Date: | 2025-01-30 14:37:15 |
Message-ID: | 53a34c56-b2f3-6e4b-1234-b7b938637a0a@sqlexec.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
There are a whole bunch of extension tools out there for this type of
stuff. Check out pgmetrics.
Regards,
Michael Vitale
Edwin UY wrote on 1/30/2025 7:13 AM:
> Hi,
>
> Does anyone know of any existing script/s out there somewhere that
> generates some kind of database/instance inventory, like listing of
> what databases exist (\l), schema (\dn) in each databases, extensions
> (\dx), user lists (\du), replication slots, tables, views, parameter
> default/non-default settings etc?
> Maybe there is already one out there, either a shell script or a SQL
> script that I can just run from psql and save the output to file.
> At the moment, running manually via psql running \l, running \c to
> each DB and running \dn, didn't realize I have to run \dn on each
> database :(, and running select statements from pg_tables and so on.
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Sbob | 2025-01-30 20:01:43 | postgresql support for diacritical character sets? |
Previous Message | Ron Johnson | 2025-01-30 14:20:04 | Re: PostgreSQL Database 'Information' Script - is there one out there? |