Backup and Recovery
Back Up All PostgreSQL Databases with pg_dumpall
Jun 9, 2026 / · 6 min read · pg_dumpall backup and recovery cluster backup global objects administration ·Back Up All PostgreSQL Databases with pg_dumpall Before a major-version upgrade or a disaster-recovery rehearsal, a DBA needs a single artifact that captures the whole cluster: every database, plus the global objects that live outside any one database. pg_dumpall produces exactly that — one plain-SQL script that …
Read MoreMonitor PostgreSQL WAL Archiver Status with pg_stat_archiver
Monitor PostgreSQL WAL Archiver Status with pg_stat_archiver pg_stat_archiver is the canonical place to check whether PostgreSQL's continuous archiving is keeping up — a single-row view that exposes last_archived_wal, last_failed_wal, and the rolling failure count without parsing log files. On a healthy cluster the row …
Read MorePostgreSQL Physical Backups with pg_basebackup pg_basebackup takes a physical, binary-level snapshot of a running PostgreSQL cluster. Unlike pg_dump, which produces a logical export of one database at a time, pg_basebackup captures the entire data directory — all databases, configuration files, and enough WAL to make …
Read Morepg_is_in_recovery — Monitor PostgreSQL Standby Status
Aug 28, 2024 / · 3 min read · PostgreSQL SQL Database Recovery Monitoring pg_is_in_backup pg_is_in_recovery pg_backup_start_time ·PostgreSQL Recovery Monitoring: Gain Real-Time Insights with SQL Purpose This PostgreSQL SQL query provides critical information about the current recovery status of your database. By utilizing a combination of system functions and conditional logic, it delivers a snapshot of whether the database is in backup or …
Read MoreImporting Data into an Existing PostgreSQL Database Managing your PostgreSQL database often involves importing data from backups or external sources. This post explores a simple yet effective command-line approach to achieve this: psql -d anexistingdb -f dump.sql. We'll break down its components, explain its …
Read MoreBacking Up Your Remote PostgreSQL Database: A Step-by-Step Guide with pg_dump In the world of databases, regular backups are crucial for ensuring data safety and minimizing downtime during unforeseen circumstances. This post dives into using pg_dump, a powerful PostgreSQL utility, to create a compressed archive of your …
Read More