Re: Inconsistent DB data in Streaming Replication
| От | Tom Lane |
|---|---|
| Тема | Re: Inconsistent DB data in Streaming Replication |
| Дата | |
| Msg-id | 14775.1365436353@sss.pgh.pa.us обсуждение |
| Ответ на | Inconsistent DB data in Streaming Replication (Samrat Revagade <revagade.samrat@gmail.com>) |
| Список | pgsql-hackers |
Samrat Revagade <revagade.samrat@gmail.com> writes:
> We have been trying to figure out possible solutions to the following
> problem in streaming replication Consider following scenario:
> If master receives commit command, it writes and flushes commit WAL records
> to the disk, It also writes and flushes data page related to this
> transaction.
> The master then sends WAL records to standby up to the commit WAL record.
> But before sending these records if failover happens then, old master is
> ahead of standby which is now the new master in terms of DB data leading
> to inconsistent data .
I don't exactly see the problem ... unless you're imagining that master
and slave share the same data storage or something like that. That's
not going to work for a ton of reasons besides this one.
regards, tom lane
В списке pgsql-hackers по дате отправления: