Re: [GENERAL] Database replication... - Mission Critica

Поиск
Список
Период
Сортировка
От
Тема Re: [GENERAL] Database replication... - Mission Critica
Дата
Msg-id 20021107161538.JNEX1349.lakecmmtao02.coxmail.com@lakecmmtab02
обсуждение исходный текст
Список pgsql-hackers
> > This is wrong assumption. If
> >
> > 1st client executes UPDATE t SET a = 1 WHERE b = 2;
> > 2nd client executes UPDATE t SET a = 2 WHERE b = 2;
> >
> > at "the same time" you don't know in what order these
> > queries will be executed on two different servers (because
> > you can't control what transaction will lock record(s)
> > for update first).
>
> I guess we would need two phase commit in this case. Then it could be
> guaranteed.
>

I'm not sure 2PC would guarantee order here.  There is
potential for a dead lock across system boundary in this
example.  If the pre commit messages were sent at the same
time which server would lock the resource?


Darren


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

Предыдущее
От: Olivier PRENANT
Дата:
Сообщение: Re: [PORTS] PostgreSQL supported platform report and a
Следующее
От: Bruce Momjian
Дата:
Сообщение: postgresql.conf server_min_messages