· 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

· 1 min · PostgreSQL

Change these: wal_level and wal_hint_bits

Set wal_level to logical and enable wal_log_hints to unlock logical replication and pg_rewind without restarting your cluster.

0 comments

· 1 min · PostgreSQL

Change these: Logging

Stop guessing what's slow in PostgreSQL—configure logging to actually see it.

1 comment

· 1 min · PostgreSQL

Change these: archive_mode and archive_command

Default `archive_mode = off` means `archive_command` is ignored—set both now to avoid a restart later when you need WAL archiving.

2 comments

· 1 min · PostgreSQL

Change This: wal_compression

Enable wal_compression to shrink write-ahead logs and replica replication traffic after checkpoints. The CPU cost is minimal for nearly all workloads.

1 comment