· 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

· 1 min · PostgreSQL

One of those things: /tmp/pgpool_status

Pgpool2 won't connect after you fix a hostname? Delete the pgpool_status file—it caches host status across restarts and won't update automatically.

0 comments

· 1 min · PostgreSQL

PostgreSQL Replication at PerconaLive 2018

Dive into PostgreSQL replication strategies with slides from PerconaLive 2018, covering practical approaches to keeping your databases in sync.

0 comments