pgbouncer_fdw
Extension for querying PgBouncer stats from normal SQL views & running pgbouncer commands from normal SQL functions
pgbouncer_fdw · Extension for querying PgBouncer stats from normal SQL views & running pgbouncer commands from normal SQL functions
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 8650 | pgbouncer_fdw | pgbouncer_fdw | 1.4.0 | FDW | PostgreSQL | SQL |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| ----d-- | No | No | No | Yes | no | no |
| Relationships | |
|---|---|
| Requires | dblink |
| See Also | pgnodemx pgmonitor pgpool_adm system_stats pg_stat_ch pg_datasentinel pgsentinel |
Requires dblink and PgBouncer >= 1.17; live queries require a configured PgBouncer admin console.
Packages
| Linux / PG | PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|---|
| el8.x86_64 | N/A | PGDG 1.4.0 | PGDG 1.4.0 | PGDG 1.4.0 | PGDG 1.4.0 |
| el8.aarch64 | N/A | PGDG 1.4.0 | PGDG 1.4.0 | PGDG 1.4.0 | PGDG 1.4.0 |
| el9.x86_64 | PGDG 1.4.0 | PGDG 1.4.0 | PGDG 1.4.0 | PGDG 1.4.0 | PGDG 1.4.0 |
| el9.aarch64 | PGDG 1.4.0 | PGDG 1.4.0 | PGDG 1.4.0 | PGDG 1.4.0 | PGDG 1.4.0 |
| el10.x86_64 | PGDG 1.4.0 | PGDG 1.4.0 | PGDG 1.4.0 | PGDG 1.4.0 | PGDG 1.4.0 |
| el10.aarch64 | PGDG 1.4.0 | PGDG 1.4.0 | PGDG 1.4.0 | PGDG 1.4.0 | PGDG 1.4.0 |
| d12.x86_64 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 |
| d12.aarch64 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 |
| d13.x86_64 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 |
| d13.aarch64 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 |
| u22.x86_64 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 |
| u22.aarch64 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 |
| u24.x86_64 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 |
| u24.aarch64 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 |
| u26.x86_64 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 |
| u26.aarch64 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 | PIGSTY 1.4.0 |
Source
github.com/CrunchyData/pgbouncer_fdw
pgbouncer_fdw-1.4.0.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
Create Server
For multiple PgBouncer instances:
Create User Mapping
Available Views
| View | Description |
|---|---|
pgbouncer_clients | Client connection details |
pgbouncer_pools | Connection pool statistics |
pgbouncer_servers | Backend server status |
pgbouncer_stats | Statistics summary |
pgbouncer_databases | Database definitions |
pgbouncer_config | Configuration parameters |
pgbouncer_lists | Internal lists |
pgbouncer_dns_hosts | DNS host cache |
pgbouncer_dns_zones | DNS zone cache |
pgbouncer_sockets | Socket information |
pgbouncer_users | User configuration |
When monitoring multiple instances, each row includes a pgbouncer_target_host column identifying the source.
Command Functions
Administrative functions (require explicit GRANT EXECUTE):