Re: Proposal: Commit timestamp

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Proposal: Commit timestamp
Дата
Msg-id 13999.1169768983@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Proposal: Commit timestamp  (Jan Wieck <JanWieck@Yahoo.com>)
Ответы Re: Proposal: Commit timestamp  (Jan Wieck <JanWieck@Yahoo.com>)
Список pgsql-hackers
Jan Wieck <JanWieck@Yahoo.com> writes:
> To provide this data, I would like to add another "log" directory, 
> pg_tslog. The files in this directory will be similar to the clog, but 
> contain arrays of timestamptz values.

Why should everybody be made to pay this overhead?

> The COMMIT syntax will get extended to
>     COMMIT [TRANSACTION] [WITH TIMESTAMP <timestamptz>];
> The extension is limited to superusers and will override the normally 
> generated commit timestamp. This will be used to give the replicating 
> transaction on the replica the exact same timestamp it got on the 
> originating master node.

I'm not convinced you've even thought this through.  If you do that then
you have no guarantee of commit timestamp monotonicity on the slave
(if it has either multi masters or any locally generated transactions).
Since this is supposedly for a multi-master system, that seems a rather
fatal objection --- no node in the system will actually have commit
timestamp monotonicity.  What are you hoping to accomplish with this?
        regards, tom lane


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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: Proposal: Commit timestamp
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Proposal: Change of pg_trigger.tg_enabled and adding pg_rewrite.ev_enabled