Re: database changes during a pg_dump

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Birchall, Austen" <austen(dot)birchall(at)metoffice(dot)gov(dot)uk>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: database changes during a pg_dump
Date: 2014-12-01 14:59:12
Message-ID: 8143.1417445952@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"Birchall, Austen" <austen(dot)birchall(at)metoffice(dot)gov(dot)uk> writes:
> If I do a
> pg_dump -Fc dbname -U postgres > backup.out

> to backup a database am I right to assume that any changes made to the database such as a row update that are made while the pg_dump is actually running will be captured in the resulting backup.out file?

No. You'll get a snapshot as of pg_dump's starting time.

There are some corner cases about DDL that's in progress while pg_dump
starts up, but user data will definitely adhere to the snapshot.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Morovikov Vladimir 2014-12-12 07:15:54 input data libreoffice calc to postgreSQL Databases
Previous Message Birchall, Austen 2014-12-01 14:51:58 database changes during a pg_dump