From: | Michael Nolan <htfoot(at)gmail(dot)com> |
---|---|
To: | Steven Schlansker <steven(at)likeness(dot)com> |
Cc: | Chris Angelico <rosuav(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Replication/cloning: rsync vs modification dates? |
Date: | 2012-07-16 22:24:33 |
Message-ID: | CAOzAquKrEpcRrCOWphE_=iD79EBPj53tVS+MBrLH6rUm4DK50Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 7/16/12, Steven Schlansker <steven(at)likeness(dot)com> wrote:
> I think it's pretty easy to show that timestamp+size isn't good enough to do
> this 100% reliably.
That may not be a problem if the slave server synchronization code
always starts to play back WAL entries at a time before the worst case
for timestamp precision.
I'm assuming here that the WAL playback process works something like this:
Look at a WAL entry, see if the disk block it references matches the
'before' indicators for that block in the WAL. If so, update it to
the 'after' data content.
There are two non-matching conditions:
If the disk block information indicates that it should match a later
update, then that block does not need to be updated.
But if the disk block information indicates that it should match an
earlier update than the one in the WAL entry, then the synchronization
fails.
From | Date | Subject | |
---|---|---|---|
Next Message | Daniele Varrazzo | 2012-07-16 22:41:37 | Re: Can't figure out how to use now() in default for tsrange column (PG 9.2) |
Previous Message | John R Pierce | 2012-07-16 22:03:26 | Re: Replication/cloning: rsync vs modification dates? |