pgdd
pgdd : Introspect pg data dictionary via standard SQL
Overview
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-- | No | Yes | No | Yes | no | no |
| Relationships | |
|---|---|
| Schemas | dd |
| See Also | ddlx pg_readme meta pg_catcheck pg_checksums pg_render pg_get_functiondef amcheck pg_dbms_metadata schedoc |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.6.1 |
18 17 16 15 14 | pgdd |
- |
| RPM | PIGSTY | 0.6.1 |
18 17 16 15 14 | pgdd_$v |
- |
| DEB | PIGSTY | 0.6.1 |
18 17 16 15 14 | postgresql-$v-pgdd |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 |
| el8.aarch64 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 |
| el9.x86_64 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 |
| el9.aarch64 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 |
| el10.x86_64 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 |
| el10.aarch64 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 |
| d12.x86_64 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 |
| d12.aarch64 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 |
| d13.x86_64 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 |
| d13.aarch64 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 |
| u22.x86_64 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 |
| u22.aarch64 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 |
| u24.x86_64 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 |
| u24.aarch64 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 |
| u26.x86_64 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 |
| u26.aarch64 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 | PIGSTY 0.6.1 |
Source
github.com/rustprooflabs/pgdd
pgdd-0.6.1.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
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;