Re: [GENERAL] Problems with postgres online backup - restore

2009-06-26 Thread Gerhard Wiesinger
Hello Richard, OK, understood it and looks to me a good system with whole block overwrite and then the deltas. Thnx. Ciao, Gerhard -- http://www.wiesinger.com/ On Fri, 26 Jun 2009, Richard Huxton wrote: Gerhard Wiesinger wrote: Hello, OK, what's then the difference doing a pg_start_bac

Re: [GENERAL] Problems with postgres online backup - restore

2009-06-25 Thread Richard Huxton
Gerhard Wiesinger wrote: Hello, OK, what's then the difference doing a pg_start_backup() or just doing the backup? pg_start_backup() forces a checkpoint (and logs a label for your backup too). Isn't that a problem that the datablock are very inconsistent, even so inconsistent that they ar

Re: [GENERAL] Problems with postgres online backup - restore

2009-06-25 Thread Gerhard Wiesinger
Hello, OK, what's then the difference doing a pg_start_backup() or just doing the backup? Isn't that a problem that the datablock are very inconsistent, even so inconsistent that they are corrupt: E.g. A part of a datablock is written when e.g. the file is tarred. => Datablock on backup is

Re: [GENERAL] Problems with postgres online backup - restore

2009-06-25 Thread Richard Huxton
Gerhard Wiesinger wrote: Hello, I'd like to understand the PostgreSQL internals in "backup mode". When I understood it correctly pg_start_backup() make a checkpoint and stops writing to the data/ directory except the WAL. All new transaction go into WAL which is also logical. But how is data

Re: [GENERAL] Problems with postgres online backup - restore

2009-06-25 Thread Gerhard Wiesinger
Hello, I'd like to understand the PostgreSQL internals in "backup mode". When I understood it correctly pg_start_backup() make a checkpoint and stops writing to the data/ directory except the WAL. All new transaction go into WAL which is also logical. But how is data consistency done when th

[GENERAL] Problems with postgres online backup - restore

2009-06-25 Thread Chris Barnes
I started an online backup of postgres, tar'd my data folder, copy to usb drive in production and restored it into my RC environment. Have I missed something important? When starting the database I receive many errors that look like the backup was corrupted. 2009-06-23 08:29:15 EDT:@:7614E