pg_relusage
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_relusage | 1.0.2 | STAT | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 6850 | pg_relusage | No | Yes | Yes | No | No | Yes | - |
| Related | pg_qualstats online_advisor hypopg pg_stat_statements index_advisor pg_stat_plans pg_upless pg_hint_plan pg_track_optimizer plan_filter |
|---|
LOAD/preload enables logging; CREATE EXTENSION only records installation.
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.0.2 | 1817161514 | pg_relusage | - |
| RPM | PIGSTY | 1.0.2 | 1817161514 | pg_relusage_$v | - |
| DEB | PIGSTY | 1.0.2 | 1817161514 | postgresql-$v-pg-relusage | - |
| OS / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 1.0.2 el8.x86_64.pg18 : pg_relusage_18 pg_relusage_18-1.0.2-1PGSTY.el8.x86_64.rpm
| PIGSTY 1.0.2 el8.x86_64.pg17 : pg_relusage_17 pg_relusage_17-1.0.2-1PGSTY.el8.x86_64.rpm
| PIGSTY 1.0.2 el8.x86_64.pg16 : pg_relusage_16 pg_relusage_16-1.0.2-1PGSTY.el8.x86_64.rpm
| PIGSTY 1.0.2 el8.x86_64.pg15 : pg_relusage_15 pg_relusage_15-1.0.2-1PGSTY.el8.x86_64.rpm
| PIGSTY 1.0.2 el8.x86_64.pg14 : pg_relusage_14 pg_relusage_14-1.0.2-1PGSTY.el8.x86_64.rpm
|
| el8.aarch64 | PIGSTY 1.0.2 el8.aarch64.pg18 : pg_relusage_18 pg_relusage_18-1.0.2-1PGSTY.el8.aarch64.rpm
| PIGSTY 1.0.2 el8.aarch64.pg17 : pg_relusage_17 pg_relusage_17-1.0.2-1PGSTY.el8.aarch64.rpm
| PIGSTY 1.0.2 el8.aarch64.pg16 : pg_relusage_16 pg_relusage_16-1.0.2-1PGSTY.el8.aarch64.rpm
| PIGSTY 1.0.2 el8.aarch64.pg15 : pg_relusage_15 pg_relusage_15-1.0.2-1PGSTY.el8.aarch64.rpm
| PIGSTY 1.0.2 el8.aarch64.pg14 : pg_relusage_14 pg_relusage_14-1.0.2-1PGSTY.el8.aarch64.rpm
|
| el9.x86_64 | PIGSTY 1.0.2 el9.x86_64.pg18 : pg_relusage_18 pg_relusage_18-1.0.2-1PGSTY.el9.x86_64.rpm
| PIGSTY 1.0.2 el9.x86_64.pg17 : pg_relusage_17 pg_relusage_17-1.0.2-1PGSTY.el9.x86_64.rpm
| PIGSTY 1.0.2 el9.x86_64.pg16 : pg_relusage_16 pg_relusage_16-1.0.2-1PGSTY.el9.x86_64.rpm
| PIGSTY 1.0.2 el9.x86_64.pg15 : pg_relusage_15 pg_relusage_15-1.0.2-1PGSTY.el9.x86_64.rpm
| PIGSTY 1.0.2 el9.x86_64.pg14 : pg_relusage_14 pg_relusage_14-1.0.2-1PGSTY.el9.x86_64.rpm
|
| el9.aarch64 | PIGSTY 1.0.2 el9.aarch64.pg18 : pg_relusage_18 pg_relusage_18-1.0.2-1PGSTY.el9.aarch64.rpm
| PIGSTY 1.0.2 el9.aarch64.pg17 : pg_relusage_17 pg_relusage_17-1.0.2-1PGSTY.el9.aarch64.rpm
| PIGSTY 1.0.2 el9.aarch64.pg16 : pg_relusage_16 pg_relusage_16-1.0.2-1PGSTY.el9.aarch64.rpm
| PIGSTY 1.0.2 el9.aarch64.pg15 : pg_relusage_15 pg_relusage_15-1.0.2-1PGSTY.el9.aarch64.rpm
| PIGSTY 1.0.2 el9.aarch64.pg14 : pg_relusage_14 pg_relusage_14-1.0.2-1PGSTY.el9.aarch64.rpm
|
| el10.x86_64 | PIGSTY 1.0.2 el10.x86_64.pg18 : pg_relusage_18 pg_relusage_18-1.0.2-1PGSTY.el10.x86_64.rpm
| PIGSTY 1.0.2 el10.x86_64.pg17 : pg_relusage_17 pg_relusage_17-1.0.2-1PGSTY.el10.x86_64.rpm
| PIGSTY 1.0.2 el10.x86_64.pg16 : pg_relusage_16 pg_relusage_16-1.0.2-1PGSTY.el10.x86_64.rpm
| PIGSTY 1.0.2 el10.x86_64.pg15 : pg_relusage_15 pg_relusage_15-1.0.2-1PGSTY.el10.x86_64.rpm
| PIGSTY 1.0.2 el10.x86_64.pg14 : pg_relusage_14 pg_relusage_14-1.0.2-1PGSTY.el10.x86_64.rpm
|
| el10.aarch64 | PIGSTY 1.0.2 el10.aarch64.pg18 : pg_relusage_18 pg_relusage_18-1.0.2-1PGSTY.el10.aarch64.rpm
| PIGSTY 1.0.2 el10.aarch64.pg17 : pg_relusage_17 pg_relusage_17-1.0.2-1PGSTY.el10.aarch64.rpm
| PIGSTY 1.0.2 el10.aarch64.pg16 : pg_relusage_16 pg_relusage_16-1.0.2-1PGSTY.el10.aarch64.rpm
| PIGSTY 1.0.2 el10.aarch64.pg15 : pg_relusage_15 pg_relusage_15-1.0.2-1PGSTY.el10.aarch64.rpm
| PIGSTY 1.0.2 el10.aarch64.pg14 : pg_relusage_14 pg_relusage_14-1.0.2-1PGSTY.el10.aarch64.rpm
|
| d12.x86_64 | PIGSTY 1.0.2 d12.x86_64.pg18 : postgresql-18-pg-relusage postgresql-18-pg-relusage_1.0.2-1PGSTY~bookworm_amd64.deb
| PIGSTY 1.0.2 d12.x86_64.pg17 : postgresql-17-pg-relusage postgresql-17-pg-relusage_1.0.2-1PGSTY~bookworm_amd64.deb
| PIGSTY 1.0.2 d12.x86_64.pg16 : postgresql-16-pg-relusage postgresql-16-pg-relusage_1.0.2-1PGSTY~bookworm_amd64.deb
| PIGSTY 1.0.2 d12.x86_64.pg15 : postgresql-15-pg-relusage postgresql-15-pg-relusage_1.0.2-1PGSTY~bookworm_amd64.deb
| PIGSTY 1.0.2 d12.x86_64.pg14 : postgresql-14-pg-relusage postgresql-14-pg-relusage_1.0.2-1PGSTY~bookworm_amd64.deb
|
| d12.aarch64 | PIGSTY 1.0.2 d12.aarch64.pg18 : postgresql-18-pg-relusage postgresql-18-pg-relusage_1.0.2-1PGSTY~bookworm_arm64.deb
| PIGSTY 1.0.2 d12.aarch64.pg17 : postgresql-17-pg-relusage postgresql-17-pg-relusage_1.0.2-1PGSTY~bookworm_arm64.deb
| PIGSTY 1.0.2 d12.aarch64.pg16 : postgresql-16-pg-relusage postgresql-16-pg-relusage_1.0.2-1PGSTY~bookworm_arm64.deb
| PIGSTY 1.0.2 d12.aarch64.pg15 : postgresql-15-pg-relusage postgresql-15-pg-relusage_1.0.2-1PGSTY~bookworm_arm64.deb
| PIGSTY 1.0.2 d12.aarch64.pg14 : postgresql-14-pg-relusage postgresql-14-pg-relusage_1.0.2-1PGSTY~bookworm_arm64.deb
|
| d13.x86_64 | PIGSTY 1.0.2 d13.x86_64.pg18 : postgresql-18-pg-relusage postgresql-18-pg-relusage_1.0.2-1PGSTY~trixie_amd64.deb
| PIGSTY 1.0.2 d13.x86_64.pg17 : postgresql-17-pg-relusage postgresql-17-pg-relusage_1.0.2-1PGSTY~trixie_amd64.deb
| PIGSTY 1.0.2 d13.x86_64.pg16 : postgresql-16-pg-relusage postgresql-16-pg-relusage_1.0.2-1PGSTY~trixie_amd64.deb
| PIGSTY 1.0.2 d13.x86_64.pg15 : postgresql-15-pg-relusage postgresql-15-pg-relusage_1.0.2-1PGSTY~trixie_amd64.deb
| PIGSTY 1.0.2 d13.x86_64.pg14 : postgresql-14-pg-relusage postgresql-14-pg-relusage_1.0.2-1PGSTY~trixie_amd64.deb
|
| d13.aarch64 | PIGSTY 1.0.2 d13.aarch64.pg18 : postgresql-18-pg-relusage postgresql-18-pg-relusage_1.0.2-1PGSTY~trixie_arm64.deb
| PIGSTY 1.0.2 d13.aarch64.pg17 : postgresql-17-pg-relusage postgresql-17-pg-relusage_1.0.2-1PGSTY~trixie_arm64.deb
| PIGSTY 1.0.2 d13.aarch64.pg16 : postgresql-16-pg-relusage postgresql-16-pg-relusage_1.0.2-1PGSTY~trixie_arm64.deb
| PIGSTY 1.0.2 d13.aarch64.pg15 : postgresql-15-pg-relusage postgresql-15-pg-relusage_1.0.2-1PGSTY~trixie_arm64.deb
| PIGSTY 1.0.2 d13.aarch64.pg14 : postgresql-14-pg-relusage postgresql-14-pg-relusage_1.0.2-1PGSTY~trixie_arm64.deb
|
| u22.x86_64 | PIGSTY 1.0.2 u22.x86_64.pg18 : postgresql-18-pg-relusage postgresql-18-pg-relusage_1.0.2-1PGSTY~jammy_amd64.deb
| PIGSTY 1.0.2 u22.x86_64.pg17 : postgresql-17-pg-relusage postgresql-17-pg-relusage_1.0.2-1PGSTY~jammy_amd64.deb
| PIGSTY 1.0.2 u22.x86_64.pg16 : postgresql-16-pg-relusage postgresql-16-pg-relusage_1.0.2-1PGSTY~jammy_amd64.deb
| PIGSTY 1.0.2 u22.x86_64.pg15 : postgresql-15-pg-relusage postgresql-15-pg-relusage_1.0.2-1PGSTY~jammy_amd64.deb
| PIGSTY 1.0.2 u22.x86_64.pg14 : postgresql-14-pg-relusage postgresql-14-pg-relusage_1.0.2-1PGSTY~jammy_amd64.deb
|
| u22.aarch64 | PIGSTY 1.0.2 u22.aarch64.pg18 : postgresql-18-pg-relusage postgresql-18-pg-relusage_1.0.2-1PGSTY~jammy_arm64.deb
| PIGSTY 1.0.2 u22.aarch64.pg17 : postgresql-17-pg-relusage postgresql-17-pg-relusage_1.0.2-1PGSTY~jammy_arm64.deb
| PIGSTY 1.0.2 u22.aarch64.pg16 : postgresql-16-pg-relusage postgresql-16-pg-relusage_1.0.2-1PGSTY~jammy_arm64.deb
| PIGSTY 1.0.2 u22.aarch64.pg15 : postgresql-15-pg-relusage postgresql-15-pg-relusage_1.0.2-1PGSTY~jammy_arm64.deb
| PIGSTY 1.0.2 u22.aarch64.pg14 : postgresql-14-pg-relusage postgresql-14-pg-relusage_1.0.2-1PGSTY~jammy_arm64.deb
|
| u24.x86_64 | PIGSTY 1.0.2 u24.x86_64.pg18 : postgresql-18-pg-relusage postgresql-18-pg-relusage_1.0.2-1PGSTY~noble_amd64.deb
| PIGSTY 1.0.2 u24.x86_64.pg17 : postgresql-17-pg-relusage postgresql-17-pg-relusage_1.0.2-1PGSTY~noble_amd64.deb
| PIGSTY 1.0.2 u24.x86_64.pg16 : postgresql-16-pg-relusage postgresql-16-pg-relusage_1.0.2-1PGSTY~noble_amd64.deb
| PIGSTY 1.0.2 u24.x86_64.pg15 : postgresql-15-pg-relusage postgresql-15-pg-relusage_1.0.2-1PGSTY~noble_amd64.deb
| PIGSTY 1.0.2 u24.x86_64.pg14 : postgresql-14-pg-relusage postgresql-14-pg-relusage_1.0.2-1PGSTY~noble_amd64.deb
|
| u24.aarch64 | PIGSTY 1.0.2 u24.aarch64.pg18 : postgresql-18-pg-relusage postgresql-18-pg-relusage_1.0.2-1PGSTY~noble_arm64.deb
| PIGSTY 1.0.2 u24.aarch64.pg17 : postgresql-17-pg-relusage postgresql-17-pg-relusage_1.0.2-1PGSTY~noble_arm64.deb
| PIGSTY 1.0.2 u24.aarch64.pg16 : postgresql-16-pg-relusage postgresql-16-pg-relusage_1.0.2-1PGSTY~noble_arm64.deb
| PIGSTY 1.0.2 u24.aarch64.pg15 : postgresql-15-pg-relusage postgresql-15-pg-relusage_1.0.2-1PGSTY~noble_arm64.deb
| PIGSTY 1.0.2 u24.aarch64.pg14 : postgresql-14-pg-relusage postgresql-14-pg-relusage_1.0.2-1PGSTY~noble_arm64.deb
|
| u26.x86_64 | PIGSTY 1.0.2 u26.x86_64.pg18 : postgresql-18-pg-relusage postgresql-18-pg-relusage_1.0.2-1PGSTY~resolute_amd64.deb
| PIGSTY 1.0.2 u26.x86_64.pg17 : postgresql-17-pg-relusage postgresql-17-pg-relusage_1.0.2-1PGSTY~resolute_amd64.deb
| PIGSTY 1.0.2 u26.x86_64.pg16 : postgresql-16-pg-relusage postgresql-16-pg-relusage_1.0.2-1PGSTY~resolute_amd64.deb
| PIGSTY 1.0.2 u26.x86_64.pg15 : postgresql-15-pg-relusage postgresql-15-pg-relusage_1.0.2-1PGSTY~resolute_amd64.deb
| PIGSTY 1.0.2 u26.x86_64.pg14 : postgresql-14-pg-relusage postgresql-14-pg-relusage_1.0.2-1PGSTY~resolute_amd64.deb
|
| u26.aarch64 | PIGSTY 1.0.2 u26.aarch64.pg18 : postgresql-18-pg-relusage postgresql-18-pg-relusage_1.0.2-1PGSTY~resolute_arm64.deb
| PIGSTY 1.0.2 u26.aarch64.pg17 : postgresql-17-pg-relusage postgresql-17-pg-relusage_1.0.2-1PGSTY~resolute_arm64.deb
| PIGSTY 1.0.2 u26.aarch64.pg16 : postgresql-16-pg-relusage postgresql-16-pg-relusage_1.0.2-1PGSTY~resolute_arm64.deb
| PIGSTY 1.0.2 u26.aarch64.pg15 : postgresql-15-pg-relusage postgresql-15-pg-relusage_1.0.2-1PGSTY~resolute_arm64.deb
| PIGSTY 1.0.2 u26.aarch64.pg14 : postgresql-14-pg-relusage postgresql-14-pg-relusage_1.0.2-1PGSTY~resolute_arm64.deb
|
Build
You can build the RPM / DEB packages for pg_relusage using pig build:
Install
You can install pg_relusage directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Preload:
Usage
Sources:
pg_relusage 1.0.2 logs relations used by statements after plan simplification. It supports PostgreSQL 10–18 and defines no SQL objects. Loading the library enables it; optional CREATE EXTENSION only records installation.
Core Workflow
Operational Boundaries
All settings require superuser: pg_relusage.enabled defaults on, pg_relusage.log_level defaults log and pg_relusage.rel_kinds defaults riSvmfp. pg_relusage.nested_statements accepts all (default: each statement), top (ignore nested statements) or fold (merge nested relations into the outer log). Version 1.0.1 fixes fold handling after a failed subtransaction.
Use session_preload_libraries for new sessions without a restart, or shared_preload_libraries for all sessions with a restart; preserve existing preload entries. LOAD normally requires superuser. Log messages omit SQL text, so configure log_line_prefix to identify the client.
System catalogs are excluded. Relations eliminated by planning or startup pruning are excluded, but partitions skipped later during execution can still appear. INSERT into a partitioned table reports only its parent. Deferred triggers at COMMIT, COPY FROM triggers and planner-invoked functions are treated as top-level statements. DDL and maintenance commands are excluded. A quiet log alone does not prove an object can be dropped.
1.0.2 and Partitioned Tables
Version 1.0.2 reduces relation-membership and partition-matching overhead for statements involving many partitions. Log format and settings are unchanged. Replace the library and restart if using shared preload, or reconnect when using session preload or LOAD. If installation was recorded with CREATE EXTENSION, also run ALTER EXTENSION pg_relusage UPDATE.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)