· 1 min · PostgreSQL

Running PostgreSQL on two ports

PostgreSQL only listens on one port, but you can use pgbouncer or stunnel to accept TLS connections on a second port and route them to your server.

1 comment

· 1 min · PostgreSQL

“Writing a Foreign Data Wrapper” at PGCon 2023

Learn the architecture and skills you need to build a PostgreSQL foreign data wrapper that reads from external data sources.

0 comments

· 2 min · PostgreSQL

A little more on max_wal_size

Higher max_wal_size means faster checkpoints but slower crash recovery. Here's how to balance the tradeoff based on what matters most to your system.

1 comment

· 2 min · PostgreSQL

The importance of max_wal_size

Frequent checkpoints kill PostgreSQL performance—here's how to tune max_wal_size to stop them from happening too often.

1 comment

· 1 min · PostgreSQL

“Real-World Logical Replication” at Nordic PGDay 2023

Slides from "Real-World Logical Replication" are now live. Dive into practical patterns for PostgreSQL's most powerful replication feature.

0 comments

· 1 min · PostgreSQL

“Database Antipatterns, and where to find them” at SCaLE 20x

Discover the database antipatterns that silently sabotage production systems and learn how to spot them before they become costly problems.

0 comments

· 3 min · PostgreSQL

Everything you know about setting work_mem is wrong.

Every work_mem tuning formula is wrong—but here's how to find the right number for your workload by analyzing actual temp file spills.

1 comment

· 1 min · PostgreSQL

Upcoming Live Presentations

Join the author at three PostgreSQL conferences this spring: SCaLE 20x, Nordic PgDay, and PgDay/MED, covering database antipatterns, logical replication, and…

1 comment

· 3 min · PostgreSQL

Workers of the World, Unite!

PostgreSQL's background worker settings are confusing—there are pools within pools.

0 comments

· 1 min · PostgreSQL

ALTER TABLE … SET WITHOUT OIDS big gotcha

Dropping a column in PostgreSQL is usually cheap—until you hit ALTER TABLE SET WITHOUT OIDS during pg_upgrade, which rewrites your entire table and can consume…

0 comments