Re: database changes during a pg_dump - Mailing list pgsql-novice

From Tom Lane
Subject Re: database changes during a pg_dump
Date
Msg-id 8143.1417445952@sss.pgh.pa.us
Whole thread Raw
In response to database changes during a pg_dump  ("Birchall, Austen" <austen.birchall@metoffice.gov.uk>)
Responses PGDATA on Windows  ("Birchall, Austen" <austen.birchall@metoffice.gov.uk>)
List pgsql-novice
"Birchall, Austen" <austen.birchall@metoffice.gov.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
whilethe 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


pgsql-novice by date:

Previous
From: "Birchall, Austen"
Date:
Subject: database changes during a pg_dump
Next
From: Morovikov Vladimir
Date:
Subject: input data libreoffice calc to postgreSQL Databases