Re: tracking commit timestamps

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: tracking commit timestamps
Дата
Msg-id 545A51A0.4080201@BlueTreble.com
обсуждение исходный текст
Ответ на Re: tracking commit timestamps  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: tracking commit timestamps  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
On 11/5/14, 10:30 AM, Andres Freund wrote:
>> Except that commit time is not guaranteed unique *even on a single
>> >system*. That's my whole point. If we're going to bother with all the
>> >commit time machinery it seems really silly to provide a way to
>> >uniquely order every commit.
> Well. I think that's the misunderstanding here. That's absolutely not
> what committs is supposed to be used for. For the replication stream
> you'd hopefully use logical decoding. That gives you the transaction
> data exactly in commit order.

So presumably you'd want to use logical decoding to insert into a table with a sequence on it, or similar?

I agree, that sounds like a better way to handle this. I think it's worth mentioning in the docs for commit_ts, because
peopleWILL mistakenly try and use it to determine commit ordering.
 
-- 
Jim Nasby, Data Architect, Blue Treble Consulting
Data in Trouble? Get it in Treble! http://BlueTreble.com



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: tracking commit timestamps
Следующее
От: Jim Nasby
Дата:
Сообщение: Re: B-Tree index builds, CLUSTER, and sortsupport