pgsql_tweaks
Some functions and views for daily usage
Repository
https://codeberg.org/pgsql_tweaks/pgsql_tweaks
https://codeberg.org/pgsql_tweaks/pgsql_tweaks
Source
pgsql_tweaks-1.0.5.tar.gz
pgsql_tweaks-1.0.5.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pgsql_tweaks | 1.0.5 | UTIL | PostgreSQL | SQL |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4200 | pgsql_tweaks | No | Yes | No | Yes | No | Yes | - |
| Related | pgcalendar pg_math pg_extra_time pg_rrule |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.0.5 | 1817161514 | pgsql_tweaks | - |
| RPM | PIGSTY | 1.0.5 | 1817161514 | pgsql_tweaks_$v | - |
| DEB | PIGSTY | 1.0.5 | 1817161514 | postgresql-$v-pgsql-tweaks | - |
Build
You can build the RPM / DEB packages for pgsql_tweaks using pig build:
Install
You can install pgsql_tweaks 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
Sources: Codeberg README, documentation site, Codeberg tags.
pgsql_tweaks provides DBA-oriented helper functions and views in the pgsql_tweaks schema. The upstream test matrix covers PostgreSQL 14 through PostgreSQL 19 beta 1; Pigsty packages it for PostgreSQL 14-18.
Data Type Check Functions
System Information Functions
Encoding Functions
Aggregate Functions
gap_fill, for filling gaps in time series.array_min,array_max,array_avg, andarray_sum.
Format And Conversion Functions
Utility Functions
System Information Views
pg_db_views,pg_foreign_keys,pg_functions,pg_active_locks.pg_table_matview_infos,pg_object_ownership,pg_partitioned_tables_infos.pg_unused_indexes,pg_bloat_info,pg_table_bloat,pg_missing_indexes.pg_role_permissions,pg_role_infos.
Statistic And Monitoring Views
statistics_top_ten_query_times,top_ten_query_average_time_in_seconds.statistics_top_ten_time_consuming_queries,statistics_top_ten_memory_usage_queries.statistics_top_ten_called_queries,statistics_top_ten_rows_returned_queries.statistics_top_ten_shared_block_hits_queries,statistics_top_ten_wal_records_generated_queries.statistics_query_activity.monitoring_wal,wal_archiving,monitoring_active_locks,monitoring_replication.monitoring_database_conflicts,monitoring_blocked_and_blocking_activity.monitoring_follower_wal_status,monitoring_vacuum.
Caveats
- Some views/functions depend on additional PostgreSQL supplied modules; upstream lists
pg_stat_statementsandpgstattuple. - The Codeberg tag for
v1.0.3says release files were added; no material user-facing function or view delta was identified from the README and tag metadata.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)