pgdd
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pgdd | 0.6.1 | ADMIN | MIT | Rust |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 5130 | pgdd | No | Yes | No | Yes | No | No | dd |
| Related | pg_catcheck pg_orphaned pg_checksums |
|---|
manual updated pgrx by Vonng
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 | - |
| OS / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 0.6.1 el8.x86_64.pg18 : pgdd_18 pgdd_18-0.6.1-1PIGSTY.el8.x86_64.rpm
| PIGSTY 0.6.1 el8.x86_64.pg17 : pgdd_17 pgdd_17-0.6.1-1PIGSTY.el8.x86_64.rpm
| PIGSTY 0.6.1 el8.x86_64.pg16 : pgdd_16 pgdd_16-0.6.1-1PIGSTY.el8.x86_64.rpm
| PIGSTY 0.6.1 el8.x86_64.pg15 : pgdd_15 pgdd_15-0.6.1-1PIGSTY.el8.x86_64.rpm
| PIGSTY 0.6.1 el8.x86_64.pg14 : pgdd_14 pgdd_14-0.6.1-1PIGSTY.el8.x86_64.rpm
|
| el8.aarch64 | PIGSTY 0.6.1 el8.aarch64.pg18 : pgdd_18 pgdd_18-0.6.1-1PIGSTY.el8.aarch64.rpm
| PIGSTY 0.6.1 el8.aarch64.pg17 : pgdd_17 pgdd_17-0.6.1-1PIGSTY.el8.aarch64.rpm
| PIGSTY 0.6.1 el8.aarch64.pg16 : pgdd_16 pgdd_16-0.6.1-1PIGSTY.el8.aarch64.rpm
| PIGSTY 0.6.1 el8.aarch64.pg15 : pgdd_15 pgdd_15-0.6.1-1PIGSTY.el8.aarch64.rpm
| PIGSTY 0.6.1 el8.aarch64.pg14 : pgdd_14 pgdd_14-0.6.1-1PIGSTY.el8.aarch64.rpm
|
| el9.x86_64 | PIGSTY 0.6.1 el9.x86_64.pg18 : pgdd_18 pgdd_18-0.6.1-1PIGSTY.el9.x86_64.rpm
| PIGSTY 0.6.1 el9.x86_64.pg17 : pgdd_17 pgdd_17-0.6.1-1PIGSTY.el9.x86_64.rpm
| PIGSTY 0.6.1 el9.x86_64.pg16 : pgdd_16 pgdd_16-0.6.1-1PIGSTY.el9.x86_64.rpm
| PIGSTY 0.6.1 el9.x86_64.pg15 : pgdd_15 pgdd_15-0.6.1-1PIGSTY.el9.x86_64.rpm
| PIGSTY 0.6.1 el9.x86_64.pg14 : pgdd_14 pgdd_14-0.6.1-1PIGSTY.el9.x86_64.rpm
|
| el9.aarch64 | PIGSTY 0.6.1 el9.aarch64.pg18 : pgdd_18 pgdd_18-0.6.1-1PIGSTY.el9.aarch64.rpm
| PIGSTY 0.6.1 el9.aarch64.pg17 : pgdd_17 pgdd_17-0.6.1-1PIGSTY.el9.aarch64.rpm
| PIGSTY 0.6.1 el9.aarch64.pg16 : pgdd_16 pgdd_16-0.6.1-1PIGSTY.el9.aarch64.rpm
| PIGSTY 0.6.1 el9.aarch64.pg15 : pgdd_15 pgdd_15-0.6.1-1PIGSTY.el9.aarch64.rpm
| PIGSTY 0.6.1 el9.aarch64.pg14 : pgdd_14 pgdd_14-0.6.1-1PIGSTY.el9.aarch64.rpm
|
| el10.x86_64 | PIGSTY 0.6.1 el10.x86_64.pg18 : pgdd_18 pgdd_18-0.6.1-1PIGSTY.el10.x86_64.rpm
| PIGSTY 0.6.1 el10.x86_64.pg17 : pgdd_17 pgdd_17-0.6.1-1PIGSTY.el10.x86_64.rpm
| PIGSTY 0.6.1 el10.x86_64.pg16 : pgdd_16 pgdd_16-0.6.1-1PIGSTY.el10.x86_64.rpm
| PIGSTY 0.6.1 el10.x86_64.pg15 : pgdd_15 pgdd_15-0.6.1-1PIGSTY.el10.x86_64.rpm
| PIGSTY 0.6.1 el10.x86_64.pg14 : pgdd_14 pgdd_14-0.6.1-1PIGSTY.el10.x86_64.rpm
|
| el10.aarch64 | PIGSTY 0.6.1 el10.aarch64.pg18 : pgdd_18 pgdd_18-0.6.1-1PIGSTY.el10.aarch64.rpm
| PIGSTY 0.6.1 el10.aarch64.pg17 : pgdd_17 pgdd_17-0.6.1-1PIGSTY.el10.aarch64.rpm
| PIGSTY 0.6.1 el10.aarch64.pg16 : pgdd_16 pgdd_16-0.6.1-1PIGSTY.el10.aarch64.rpm
| PIGSTY 0.6.1 el10.aarch64.pg15 : pgdd_15 pgdd_15-0.6.1-1PIGSTY.el10.aarch64.rpm
| PIGSTY 0.6.1 el10.aarch64.pg14 : pgdd_14 pgdd_14-0.6.1-1PIGSTY.el10.aarch64.rpm
|
| d12.x86_64 | PIGSTY 0.6.1 d12.x86_64.pg18 : postgresql-18-pgdd postgresql-18-pgdd_0.6.1-1PIGSTY~bookworm_amd64.deb
| PIGSTY 0.6.1 d12.x86_64.pg17 : postgresql-17-pgdd postgresql-17-pgdd_0.6.1-1PIGSTY~bookworm_amd64.deb
| PIGSTY 0.6.1 d12.x86_64.pg16 : postgresql-16-pgdd postgresql-16-pgdd_0.6.1-1PIGSTY~bookworm_amd64.deb
| PIGSTY 0.6.1 d12.x86_64.pg15 : postgresql-15-pgdd postgresql-15-pgdd_0.6.1-1PIGSTY~bookworm_amd64.deb
| PIGSTY 0.6.1 d12.x86_64.pg14 : postgresql-14-pgdd postgresql-14-pgdd_0.6.1-1PIGSTY~bookworm_amd64.deb
|
| d12.aarch64 | PIGSTY 0.6.1 d12.aarch64.pg18 : postgresql-18-pgdd postgresql-18-pgdd_0.6.1-1PIGSTY~bookworm_arm64.deb
| PIGSTY 0.6.1 d12.aarch64.pg17 : postgresql-17-pgdd postgresql-17-pgdd_0.6.1-1PIGSTY~bookworm_arm64.deb
| PIGSTY 0.6.1 d12.aarch64.pg16 : postgresql-16-pgdd postgresql-16-pgdd_0.6.1-1PIGSTY~bookworm_arm64.deb
| PIGSTY 0.6.1 d12.aarch64.pg15 : postgresql-15-pgdd postgresql-15-pgdd_0.6.1-1PIGSTY~bookworm_arm64.deb
| PIGSTY 0.6.1 d12.aarch64.pg14 : postgresql-14-pgdd postgresql-14-pgdd_0.6.1-1PIGSTY~bookworm_arm64.deb
|
| d13.x86_64 | PIGSTY 0.6.1 d13.x86_64.pg18 : postgresql-18-pgdd postgresql-18-pgdd_0.6.1-1PIGSTY~trixie_amd64.deb
| PIGSTY 0.6.1 d13.x86_64.pg17 : postgresql-17-pgdd postgresql-17-pgdd_0.6.1-1PIGSTY~trixie_amd64.deb
| PIGSTY 0.6.1 d13.x86_64.pg16 : postgresql-16-pgdd postgresql-16-pgdd_0.6.1-1PIGSTY~trixie_amd64.deb
| PIGSTY 0.6.1 d13.x86_64.pg15 : postgresql-15-pgdd postgresql-15-pgdd_0.6.1-1PIGSTY~trixie_amd64.deb
| PIGSTY 0.6.1 d13.x86_64.pg14 : postgresql-14-pgdd postgresql-14-pgdd_0.6.1-1PIGSTY~trixie_amd64.deb
|
| d13.aarch64 | PIGSTY 0.6.1 d13.aarch64.pg18 : postgresql-18-pgdd postgresql-18-pgdd_0.6.1-1PIGSTY~trixie_arm64.deb
| PIGSTY 0.6.1 d13.aarch64.pg17 : postgresql-17-pgdd postgresql-17-pgdd_0.6.1-1PIGSTY~trixie_arm64.deb
| PIGSTY 0.6.1 d13.aarch64.pg16 : postgresql-16-pgdd postgresql-16-pgdd_0.6.1-1PIGSTY~trixie_arm64.deb
| PIGSTY 0.6.1 d13.aarch64.pg15 : postgresql-15-pgdd postgresql-15-pgdd_0.6.1-1PIGSTY~trixie_arm64.deb
| PIGSTY 0.6.1 d13.aarch64.pg14 : postgresql-14-pgdd postgresql-14-pgdd_0.6.1-1PIGSTY~trixie_arm64.deb
|
| u22.x86_64 | PIGSTY 0.6.1 u22.x86_64.pg18 : postgresql-18-pgdd postgresql-18-pgdd_0.6.1-1PIGSTY~jammy_amd64.deb
| PIGSTY 0.6.1 u22.x86_64.pg17 : postgresql-17-pgdd postgresql-17-pgdd_0.6.1-1PIGSTY~jammy_amd64.deb
| PIGSTY 0.6.1 u22.x86_64.pg16 : postgresql-16-pgdd postgresql-16-pgdd_0.6.1-1PIGSTY~jammy_amd64.deb
| PIGSTY 0.6.1 u22.x86_64.pg15 : postgresql-15-pgdd postgresql-15-pgdd_0.6.1-1PIGSTY~jammy_amd64.deb
| PIGSTY 0.6.1 u22.x86_64.pg14 : postgresql-14-pgdd postgresql-14-pgdd_0.6.1-1PIGSTY~jammy_amd64.deb
|
| u22.aarch64 | PIGSTY 0.6.1 u22.aarch64.pg18 : postgresql-18-pgdd postgresql-18-pgdd_0.6.1-1PIGSTY~jammy_arm64.deb
| PIGSTY 0.6.1 u22.aarch64.pg17 : postgresql-17-pgdd postgresql-17-pgdd_0.6.1-1PIGSTY~jammy_arm64.deb
| PIGSTY 0.6.1 u22.aarch64.pg16 : postgresql-16-pgdd postgresql-16-pgdd_0.6.1-1PIGSTY~jammy_arm64.deb
| PIGSTY 0.6.1 u22.aarch64.pg15 : postgresql-15-pgdd postgresql-15-pgdd_0.6.1-1PIGSTY~jammy_arm64.deb
| PIGSTY 0.6.1 u22.aarch64.pg14 : postgresql-14-pgdd postgresql-14-pgdd_0.6.1-1PIGSTY~jammy_arm64.deb
|
| u24.x86_64 | PIGSTY 0.6.1 u24.x86_64.pg18 : postgresql-18-pgdd postgresql-18-pgdd_0.6.1-1PIGSTY~noble_amd64.deb
| PIGSTY 0.6.1 u24.x86_64.pg17 : postgresql-17-pgdd postgresql-17-pgdd_0.6.1-1PIGSTY~noble_amd64.deb
| PIGSTY 0.6.1 u24.x86_64.pg16 : postgresql-16-pgdd postgresql-16-pgdd_0.6.1-1PIGSTY~noble_amd64.deb
| PIGSTY 0.6.1 u24.x86_64.pg15 : postgresql-15-pgdd postgresql-15-pgdd_0.6.1-1PIGSTY~noble_amd64.deb
| PIGSTY 0.6.1 u24.x86_64.pg14 : postgresql-14-pgdd postgresql-14-pgdd_0.6.1-1PIGSTY~noble_amd64.deb
|
| u24.aarch64 | PIGSTY 0.6.1 u24.aarch64.pg18 : postgresql-18-pgdd postgresql-18-pgdd_0.6.1-1PIGSTY~noble_arm64.deb
| PIGSTY 0.6.1 u24.aarch64.pg17 : postgresql-17-pgdd postgresql-17-pgdd_0.6.1-1PIGSTY~noble_arm64.deb
| PIGSTY 0.6.1 u24.aarch64.pg16 : postgresql-16-pgdd postgresql-16-pgdd_0.6.1-1PIGSTY~noble_arm64.deb
| PIGSTY 0.6.1 u24.aarch64.pg15 : postgresql-15-pgdd postgresql-15-pgdd_0.6.1-1PIGSTY~noble_arm64.deb
| PIGSTY 0.6.1 u24.aarch64.pg14 : postgresql-14-pgdd postgresql-14-pgdd_0.6.1-1PIGSTY~noble_arm64.deb
|
| u26.x86_64 | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| u26.aarch64 | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
Build
You can build the RPM / DEB packages for pgdd using pig build:
pig build pkg pgdd # build RPM / DEB packages
Install
You can install pgdd directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
pig repo add pgsql -u # Add repo and update cache
Install the extension using pig or apt/yum/dnf:
pig install pgdd; # Install for current active PG version
pig ext install -y pgdd -v 18 # PG 18
pig ext install -y pgdd -v 17 # PG 17
pig ext install -y pgdd -v 16 # PG 16
pig ext install -y pgdd -v 15 # PG 15
pig ext install -y pgdd -v 14 # PG 14
dnf install -y pgdd_18 # PG 18
dnf install -y pgdd_17 # PG 17
dnf install -y pgdd_16 # PG 16
dnf install -y pgdd_15 # PG 15
dnf install -y pgdd_14 # PG 14
apt install -y postgresql-18-pgdd # PG 18
apt install -y postgresql-17-pgdd # PG 17
apt install -y postgresql-16-pgdd # PG 16
apt install -y postgresql-15-pgdd # PG 15
apt install -y postgresql-14-pgdd # PG 14
Create Extension:
CREATE EXTENSION pgdd;
Usage
PgDD provides data dictionary views in the dd schema for introspecting database objects via standard SQL.
Database Overview
SELECT * FROM dd.database;
Returns: db_name, db_size, schema_count, table_count, size_in_tables, view_count, size_in_views, extension_count.
Schemas
SELECT s_name, table_count, view_count, function_count, size_plus_indexes, description
FROM dd.schemas;
Tables
SELECT t_name, size_pretty, rows, bytes_per_row
FROM dd.tables
WHERE s_name = 'public';
Views
SELECT s_name, v_name, description FROM dd.views;
Columns
SELECT source_type, s_name, t_name, c_name, data_type
FROM dd.columns
WHERE data_type LIKE 'int%';
Functions
SELECT s_name, f_name, argument_data_types, result_data_types FROM dd.functions;
Partitioned Tables
SELECT * FROM dd.partition_parents WHERE s_name = 'public';
SELECT * FROM dd.partition_children WHERE s_name = 'public';
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;
Feedback
Was this page helpful?
Thanks for the feedback! Please let us know how we can improve.
Sorry to hear that. Please let us know how we can improve.