Re: About backups

From: Christophe Pettus <xof(at)thebuild(dot)com>
To: felix(dot)quintgz(at)yahoo(dot)com
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: About backups
Date: 2026-01-28 20:29:57
Message-ID: EC52E7A1-6ADE-4711-990F-8CCA1E34FE0A@thebuild.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Jan 28, 2026, at 12:28, felix(dot)quintgz(at)yahoo(dot)com wrote:
>
> What happens if I start a backup in the middle of a user transaction?
> The transaction can end before or after the backup ends, and it can also start before or after the backup begins.

pg_dump takes a snapshot at the start of the dump, so the dump is consistent at a transaction boundary. Of course, only transactions that have already committed at the time of the snapshot will appear in the dump.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Guillaume Lelarge 2026-01-28 20:31:41 Re: About backups
Previous Message felix.quintgz 2026-01-28 20:28:23 Re: About backups