What does a PostgreSQL consultant do?
A PostgreSQL consultant diagnoses and fixes the database your application runs on: slow queries, high CPU, connection exhaustion, autovacuum and bloat, replication and backups. They also plan and run major version upgrades and migrations to PostgreSQL from Oracle, SQL Server or MySQL. DharmOps also stays on to support the database after the work is done.
How long is a PostgreSQL version supported?
The PostgreSQL community releases a new major version about once a year and supports each one for five years. During that time it gets minor releases with bug and security fixes at least every three months. The community recommends always running the latest minor release of your major version. The current dates for each version are on the PostgreSQL versioning page.
What happens when a PostgreSQL version reaches end of life?
The database keeps running, but it gets no more bug or security fixes after its final minor release. Security issues found later are only fixed in supported versions. On Amazon RDS and Aurora, the version stays in standard support for a short time after the community end of life, then moves to paid Extended Support for up to three years before an upgrade is forced.
How much does Amazon RDS Extended Support cost for PostgreSQL?
It is charged per vCPU per hour, on top of the normal instance price, and depends on the region, the version and how long the version has been out of standard support. The rate rises from the third year. Every instance on the version is billed, replicas included, so a cluster with large instances and several replicas pays the charge many times over. Upgrading to a supported version stops it.
Which PostgreSQL version should we upgrade to?
You can skip intervening major versions, so the target is usually the newest major that has had a few minor releases, is supported by every extension you use, and is offered by your cloud provider. Amazon RDS adds a new major version within 30 days of its first minor release. Moving to a recent version also gives you the longest time before the next upgrade.
Can PostgreSQL be upgraded without downtime?
Close to it. pg_upgrade with the --link option moves the data in minutes, but the database is down while it runs and standbys need rebuilding. For near-zero downtime, logical replication copies the data to a new cluster on the target version, and the cutover takes seconds to minutes. On Amazon RDS, Blue/Green Deployments do a similar switchover for major upgrades.
Why is my PostgreSQL database slow?
The usual causes are queries without a matching index, settings still at their defaults (shared_buffers at 128 MB, work_mem at 4 MB), table bloat from autovacuum falling behind, too many direct connections, and long transactions holding locks. After a major upgrade, missing planner statistics are another common cause. pg_stat_statements and EXPLAIN (ANALYZE, BUFFERS) show which one applies.
What is transaction ID wraparound in PostgreSQL?
PostgreSQL gives each writing transaction a 32-bit ID, so the counter runs out after about two billion transactions. Vacuum has to freeze old rows before that happens. If it falls too far behind, PostgreSQL stops accepting writes until a vacuum completes. Monitoring the age of the oldest transaction ID per table, and tuning autovacuum, prevents it.
Should we use PgBouncer or RDS Proxy?
Both pool connections so the database runs fewer server processes. PgBouncer is open source, runs wherever you put it, and in transaction mode lets thousands of clients share a few dozen connections. RDS Proxy is managed by AWS and handles failover for you, but it is billed per vCPU of the database behind it, and session-level features can pin a client to one connection, which reduces the pooling.
Can PostgreSQL be used as a vector database?
Yes. The pgvector extension stores embeddings in PostgreSQL and searches them with exact or approximate nearest-neighbour queries, using HNSW or IVFFlat indexes. It keeps vectors next to the rows they describe, with the same backups and access control. At larger sizes, index build time, memory and query load on the primary need planning.
What are the downsides of PostgreSQL?
Each connection is a separate process, so many direct connections need a pooler. Updates leave dead rows that vacuum has to clean up, and a neglected vacuum leads to bloat or, at the extreme, wraparound. Major upgrades need pg_upgrade or a replication-based move. Each version is supported for five years, so upgrades are a regular task. None of these block it, but each needs an owner.
How is PostgreSQL consulting priced?
Scope is quoted after the diagnostic, once we have looked at your database, and before you commit. Cost depends on the number of databases and environments, data size, the version gap for upgrades, replicas and hosting, compliance requirements and whether support continues afterward.
What happens after the work is done?
The same engineers stay on. They fix breaks, run planned minor and major upgrades, plan capacity as data and traffic grow, and review queries and schema changes for new features. The runbooks and documentation stay current, so your database doesn't depend on one person.