Re: solving wraparound - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: solving wraparound
Date
Msg-id 20051226212238.GB19923@svana.org
Whole thread Raw
In response to Re: solving wraparound  (Jaime Casanova <systemguards@gmail.com>)
Responses Re: solving wraparound
List pgsql-general
On Mon, Dec 26, 2005 at 04:11:49PM -0500, Jaime Casanova wrote:
> yes, it seems that's enough...
>
> i was trying to help to a buddy in the spanish list and my first
> recommendation was to copy all data directory... when he tries that he
> makes a vacuum and the data go back...
>
> i told him to review their data to be sure...

For the record, the data dissappears from view after 2 billion
transactions but it's not until 3 billion that VACUUM considers the
data in the future and thus removable. VACUUM fixes it so it appears
again and all is well.

The only issue I can think of is that constraints might be violated
(duplicate keys in unique index) because one of the records might have
been invisible when the second was created...

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-general by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: solving wraparound
Next
From: Tom Lane
Date:
Subject: Re: solving wraparound