Re: Replication/cloning: rsync vs modification dates?

Поиск
Список
Период
Сортировка
От Michael Nolan
Тема Re: Replication/cloning: rsync vs modification dates?
Дата
Msg-id CAOzAquKrEpcRrCOWphE_=iD79EBPj53tVS+MBrLH6rUm4DK50Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Replication/cloning: rsync vs modification dates?  (Steven Schlansker <steven@likeness.com>)
Список pgsql-general
On 7/16/12, Steven Schlansker <steven@likeness.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.

В списке pgsql-general по дате отправления:

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: Replication/cloning: rsync vs modification dates?
Следующее
От: Daniele Varrazzo
Дата:
Сообщение: Re: Can't figure out how to use now() in default for tsrange column (PG 9.2)