pg_upless
Detect Useless UPDATE
Repository
rodo/pg_upless
https://github.com/rodo/pg_upless
Source
pg_upless-0.0.3.tar.gz
pg_upless-0.0.3.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_upless | 0.0.3 | ADMIN | PostgreSQL | SQL |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 5180 | pg_upless | No | No | No | Yes | Yes | No | - |
| Related | plpgsql pg_qualstats online_advisor hypopg pg_relusage index_advisor pg_stat_plans pg_hint_plan pg_stat_statements pg_track_optimizer plan_filter |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.0.3 | 1817161514 | pg_upless | plpgsql |
| RPM | PIGSTY | 0.0.3 | 1817161514 | pg_upless_$v | - |
| DEB | PIGSTY | 0.0.3 | 1817161514 | postgresql-$v-pg-upless | - |
Build
You can build the RPM / DEB packages for pg_upless using pig build:
Install
You can install pg_upless directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
pg_upless detects UPDATE statements that change no actual values (common with ORMs). It works by installing triggers on monitored tables and collecting statistics. It is intended as a diagnostic tool, not for permanent use.
Start Monitoring
Stop Monitoring
View Statistics
The extension creates two tables in the pg_upless schema:
pg_upless_stats– stores counts of total vs useless updates per tablepg_upless_start_time– records when monitoring started (for rate calculations)
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)