PgCat PostgreSQL Connection Pooler with PostgreSQL 17 on Ubuntu 24.04 LTS by cloudimg
by cloudimg
PgCat connection pooler fronting PostgreSQL, secured and pooled on first boot
PgCat connection pooler with PostgreSQL 17
A ready to use connection pooling database appliance: PgCat, the open source PostgreSQL connection pooler and proxy written in Rust, fronting a bundled PostgreSQL 17 database on a hardened, fully patched Ubuntu 24.04 LTS base. Applications connect through PgCat in transaction pooling mode on port 6432; the pooler multiplexes many short lived client connections onto a small pool of backend PostgreSQL sessions, so a connection heavy or serverless workload stays fast without exhausting the database with one backend process per client. PgCat is the single public entry point; the PostgreSQL backend is bound to the loopback interface behind it and is reached only through the pooler.
Secure by default, no baked credential
There are two built in accounts and neither carries a password in the image. PgCat ships with no configuration file at all, so no pooler or admin credential exists in the image and the pooler will not even start until first boot has written its per VM configuration. On first boot each VM generates a unique password for the PostgreSQL superuser, a unique password for the PgCat admin console user, and a unique self signed TLS certificate, writing the credentials to a root only file. On box administration stays password less through the local unix socket.
What you get
- PgCat 1.2.0, built from the pinned upstream source and running under systemd, in transaction pooling mode on port 6432
- PostgreSQL 17 from the official PostgreSQL PGDG repository, running under systemd, bound to loopback behind the pooler
- A default database ready to use through the pooler
- A built in admin console for live pool and traffic statistics (SHOW POOLS, SHOW STATS)
- Per VM passwords for the database superuser and the pooler admin, plus a per VM TLS certificate, generated on first boot with no default login
- Unattended security upgrades left enabled, and 24/7 cloudimg support
Licensing
PgCat is distributed under the MIT License and PostgreSQL under the PostgreSQL License, both permissive and free to redistribute. The cloudimg charge ($0.04 per vCPU/hour) covers packaging, security patching, image maintenance and 24/7 expert support.