Re: New feature request: FlashBack Query - Mailing list pgsql-hackers

From Zeugswetter Andreas ADI SD
Subject Re: New feature request: FlashBack Query
Date
Msg-id E1539E0ED7043848906A8FF995BDA57901CAF1B5@m0143.s-mxs.net
Whole thread Raw
In response to Re: New feature request: FlashBack Query  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: New feature request: FlashBack Query  ("Florian G. Pflug" <fgp@phlo.org>)
List pgsql-hackers
> > >First we must run the query in serializable mode and replace the
> > >snapshot with a synthetic one, which defines visibility at the
start
> > >of the desired transaction
> > >
> > >probably it is a good idea to take a lock on all tables involved to

> > >avoid a vacuum to be started on them when the query is running.
> > Would the xmin exported by that transaction prevent vacuum from
> > removing any tuples still needed for the flashback snapshot?
>
> Sure, and that makes the mentioned lock unnecessary.

Problem is, that that transaction sets a historic snapshot at a later
time, so it is not yet running when vacuum looks at "global xmin".
So something else needs to hold up global xmin (see prev post).

Andreas


pgsql-hackers by date:

Previous
From: "Zeugswetter Andreas ADI SD"
Date:
Subject: Re: New feature request: FlashBack Query
Next
From: "Florian G. Pflug"
Date:
Subject: Re: New feature request: FlashBack Query