pgbouncer_fdw
Extension for querying PgBouncer stats from normal SQL views & running pgbouncer commands from normal SQL functions
Repository
CrunchyData/pgbouncer_fdw
https://github.com/CrunchyData/pgbouncer_fdw
Source
pgbouncer_fdw-1.4.0.tar.gz
pgbouncer_fdw-1.4.0.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pgbouncer_fdw | 1.4.0 | FDW | PostgreSQL | SQL |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 8650 | pgbouncer_fdw | No | No | No | Yes | No | No | - |
Requires dblink and PgBouncer >= 1.17; live queries require a configured PgBouncer admin console.
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | MIXED | 1.4.0 | 1817161514 | pgbouncer_fdw | dblink |
| RPM | PGDG | 1.4.0 | 1817161514 | pgbouncer_fdw_$v | - |
| DEB | PIGSTY | 1.4.0 | 1817161514 | postgresql-$v-pgbouncer-fdw | - |
Build
You can build the DEB packages for pgbouncer_fdw using pig build:
Install
You can install pgbouncer_fdw 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
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):
Permissions
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)