On Tue, Aug 23, 2005 at 11:36:31PM -0500, 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. It's impossible to have a collision in this scenario unless you > roll the clock way back AND reset the sequence (assuming you're using an > integer sequence). Or else use XMIN. Karsten -- GPG key ID E4071346 @ wwwkeys.pgp.net E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346 ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq