Re: Vacuum/visibility is busted - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Vacuum/visibility is busted
Date
Msg-id 20130207203216.GE5172@alvh.no-ip.org
Whole thread Raw
In response to Re: Vacuum/visibility is busted  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-hackers
Jeff Janes escribió:
> On Thu, Feb 7, 2013 at 10:09 AM, Pavan Deolasee
> <pavan.deolasee@gmail.com> wrote:
> >
> > Right. I don't have the database handy at this moment, but earlier in
> > the day I ran some queries against it and found that most of the
> > duplicates which are not accessible via indexes have xmin very close
> > to 2100345903. In fact, many of them are from a consecutive range.
>
> Does anyone have suggestions on how to hack the system to make it
> fast-forward the current transaction id? It would certainly make
> testing this kind of thing faster if I could make transaction id
> increment by 100 each time a new one is generated.  Then wrap-around
> could be approached in minutes rather than hours.

I can reproduce the problem in a few minutes with the attached.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Attachment

pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Vacuum/visibility is busted
Next
From: Tomas Vondra
Date:
Subject: performance bug in instrument.c