· 2 min · PostgreSQL

A foreign key pathology to avoid

Popular streamers and millions of concurrent viewers expose a PostgreSQL anti-pattern: bulk inserts on foreign keys trigger MultiXact overflow and brutal lock…

0 comments

· 2 min · PostgreSQL

OK, sometimes you can lock tables.

Schema changes on busy tables can deadlock your system. Use LOCK TABLE NOWAIT in a retry loop to avoid blocking the queue behind your ALTER TABLE.

0 comments

· 1 min · PostgreSQL

How slow is DECIMAL, anyway?

NUMERIC is 2–5x slower than DOUBLE PRECISION in arithmetic operations, but not absurdly so.

0 comments

· 1 min · PostgreSQL

Why submit a paper to PgDay 2020?

Have a PostgreSQL story to share? PgDay 2020's Call for Proposals welcomes first-time speakers and fresh perspectives from the community.

0 comments

· 1 min · PostgreSQL

PgDaySF 2020!

The inaugural PgDay San Francisco lands January 21 at the Swedish-American Hall. Call for proposals and early-bird tickets are now open.

0 comments

· 1 min · PostgreSQL

“Look It Up: Practical PostgreSQL Indexing” at Nordic PGDay 2019

Slides from my PGDay Nordic 2019 talk on lookups are now online—dive into the techniques that made the presentation.

0 comments

· 3 min · PostgreSQL

What’s up with SET TRANSACTION SNAPSHOT?

PostgreSQL lets you export transaction snapshots so multiple sessions see the exact same database view—essential for tools like parallel pg_dump that need…

2 comments

· 2 min · PostgreSQL

Do not change autovacuum age settings

PostgreSQL's autovacuum freeze parameters prevent catastrophic transaction ID wraparound—and cranking them up is a mistake that can force your database…

4 comments

· 1 min · PostgreSQL

“Breaking PostgreSQL at Scale” at FOSDEM 2019

Discover what breaks when PostgreSQL scales to its limits, straight from the FOSDEM 2019 talk slides.

1 comment

· 1 min · PostgreSQL

Find the value of all database sequences

Check your sequences for overflow risk without incrementing them. A handy PL/pgSQL function returns all current sequence values at a glance.

2 comments