Search Postgresql Archives

Re: pg_start_backup does not actually allow for consistent, file-level backup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



otheus uibk wrote:
> Just to nit-pick, I see nowhere in either version of the manual the indication that it is normal for
> postgresql to continue to update files in its data catalog between pg_start_backup and pg_stop_backup.
> The closest I see comes in this paragraph:
> 
> ** Some file system backup tools emit warnings or errors if the files they are trying to copy change
> while the copy proceeds. When taking a base backup of an active database, this situation is normal and
> not an error.
> 
> Does "this situation" refer to the tools emitting warnings or to the fact that postgresql is updating
> the files? It might be the case, for instance, that timestamps are updated but not the contents of the
> files (this is what I had assumed prior to today).

The manual does not contain all the details how backup and recovery works internally,
you'd have to see the source code for that.

It is normal for the files to change while backup is in progress (in fact, the database
continues working normally, but more information is written to the Write Ahead Log).
It is also normal for backup tools to complain if the file they copy changes while they
read it.

Yours,
Laurenz Albe

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux