Re: Transaction ID wraparound, Oracle style

From: "A(dot)M(dot)" <agentm(at)themactionfaction(dot)com>
To: pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: Transaction ID wraparound, Oracle style
Date: 2012-01-18 20:22:14
Message-ID: A3162628-15FC-4221-8801-6C3C1F61B7B9@themactionfaction.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Jan 18, 2012, at 2:15 PM, Scott Marlowe wrote:

> On Wed, Jan 18, 2012 at 11:21 AM, Igor Polishchuk <igor(at)powerreviews(dot)com> wrote:
>> Here is an article on a recently discovered Oracle flaw, which allows SCN to
>> reach its limit.
>> http://www.computerworld.com/s/article/9223506/Fundamental_Oracle_flaw_revea
>> led?taxonomyId=18&pageNumber=1
>>
>> Please don't beat me for posting a link for an Oracle related article.
>> If you despise a very notion of mentioning Oracle, please just don't read
>> the post.
>> This article may be interesting to any RDBMS professional, no mater what db
>> flavor he/she is working with.
>> Also, this story may be a lesson for the Postgresql community on how not do
>> things. I'm not a developer, but it seems that having synchronized
>> transaction id between let say streaming-replicated databases would give
>> some advantages if done properly.
>
> Wow, interesting difference between postgresql which occasionally
> resets its smaller transaction id to prevent wrap whereas oracle just
> uses a bigger number. If my calcs are right, Oracle has about 500
> years to figure out the wrap around limit at 16ktps etc.
>
> Thanks for the link, it was a fascinating read.

By the way, this is called a Lamport clock.

http://en.wikipedia.org/wiki/Lamport_timestamps?banner=none

"On receiving a message, the receiver process sets its counter to be greater than the maximum of its own value and the received value before it considers the message received."

Cheers,
M

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Simon Riggs 2012-01-18 23:06:21 Re: Does Version 9.1 Streaming Replication Supports Multi-Master?
Previous Message Scott Marlowe 2012-01-18 19:15:59 Re: Transaction ID wraparound, Oracle style