PostgreSQL High Availability with Patroni, etcd, HAProxy and keepalived

serene snowy mountain landscape with pines

PostgreSQL has a mature, production-grade high availability stack that costs nothing in licensing and is straightforward to operate once it is set up.

This lab builds a six-node HA cluster using four open-source components: Patroni for cluster management and automatic failover, etcd as the distributed consensus store, HAProxy for load balancing and connection routing, and keepalived for a floating virtual IP that survives HAProxy node failures.

The result is a cluster where a primary failure is detected and a new primary is elected in under 30 seconds, with no manual intervention required.

Continue reading “PostgreSQL High Availability with Patroni, etcd, HAProxy and keepalived”

8 Architectural Differences Between Oracle and PostgreSQL That Impact Performance

abstract painting

Many companies migrating from Oracle to PostgreSQL assume the main challenge will be SQL syntax differences.

But in reality, the biggest changes are architectural.

If you come from an Oracle background (RAC, Exadata, Enterprise environments), understanding these differences is essential because they directly affect:

  • Performance tuning
  • Troubleshooting
  • Capacity planning
  • Scaling strategies

Below are 8 key architectural differences between Oracle and PostgreSQL that impact performance the most.

Continue reading “8 Architectural Differences Between Oracle and PostgreSQL That Impact Performance”