Re: ctid access is slow - Mailing list pgsql-general

From Ron Mayer
Subject Re: ctid access is slow
Date
Msg-id 430CA45D.6030400@cheapcomplexdevices.com
Whole thread Raw
In response to Re: ctid access is slow  ("Jim C. Nasby" <jnasby@pervasive.com>)
List pgsql-general
Jim C. Nasby wrote:
>
> A better solution is to use a combination of a timestamp and a sequence.
> Why both? Because it's possible for the clock to be set back (though
> this is something best avoided), and a sequence will eventually roll
> over.


With the default MAXVALUE of a postgresql sequence (9 quintillion or so)
you'd need a pretty amazingly fast cluster to roll one over, wouldn't you?
Of course if you choose to truncate them to something smaller they might,
but I'd see little benefit of both truncating and adding a timestamp.

pgsql-general by date:

Previous
From: "Knut P Lehre"
Date:
Subject: root.crt
Next
From: Chris Browne
Date:
Subject: Re: Postgresql replication