pgdd
Overview
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 5130 | pgdd | No | Yes | No | Yes | No | No | dd |
| Related | ddlx pg_readme meta pg_catcheck pg_checksums pg_render pg_get_functiondef amcheck pg_dbms_metadata schedoc |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.6.1 | 1817161514 | pgdd | - |
| RPM | PIGSTY | 0.6.1 | 1817161514 | pgdd_$v | - |
| DEB | PIGSTY | 0.6.1 | 1817161514 | postgresql-$v-pgdd | - |
Build
You can build the RPM / DEB packages for pgdd using pig build:
Install
You can install pgdd directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Create Extension:
Usage
PgDD provides data dictionary views in the dd schema for introspecting database objects via standard SQL.
Database Overview
Returns: db_name, db_size, schema_count, table_count, size_in_tables, view_count, size_in_views, extension_count.
Schemas
Tables
Views
Columns
Functions
Partitioned Tables
The partition_parents view shows aggregate partition stats (count, total size, total rows). The partition_children view shows per-partition details with percentage calculations against the parent.
System objects are excluded by default. To include them, query the underlying functions directly: SELECT * FROM dd.tables() WHERE system_object;
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)