· 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

· 1 min · PostgreSQL

“Securing PostgreSQL” at PDXPUG PostgreSQL Day 2018

Securing PostgreSQL presentation slides from PDXPUG PostgreSQL Day 2018 are now available for download.

0 comments

· 2 min · PostgreSQL

CHAR: What is it good for?

PostgreSQL's CHAR type pads with spaces and silently trims them during operations, creating bizarre behaviors that surprise most developers.

2 comments

· 1 min · PostgreSQL

Don’t LOCK tables. Just don’t.

LOCK TABLE might seem tempting for serializing access, but it blocks autovacuum and replicates to secondaries. Use advisory locks instead.

0 comments

· 2 min · PostgreSQL

Three Steps to pg_rewind Happiness

Use pg_rewind to reattach a former primary as a secondary without a full rebuild.

0 comments

· 1 min · PostgreSQL

Does anyone really know what time it is?

PostgreSQL offers three ways to get the current time: now(), statement_timestamp(), and clock_timestamp(). Learn which one to use and when.

2 comments