· 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

· 1 min · PostgreSQL

One of those things: pgbouncer and self-signed certificates

PgBouncer's self-signed TLS setup requires an easy-to-forget CA file parameter—here's what you need to know.

0 comments

· 2 min · PostgreSQL

pg_rewind and checkpoints: caution!

Promoting a secondary and rewinding the old primary with pg_rewind is fast—until a timing bug leaves your new secondary unable to recover.

3 comments

· 2 min · PostgreSQL

That Google Checksum Tool

Google's new checksum verification tool sparked backup integrity concerns, but PostgreSQL's page checksums have been solid since 9.3—some backup tools just…

1 comment