Re: New feature request: FlashBack Query
От | Zeugswetter Andreas ADI SD |
---|---|
Тема | Re: New feature request: FlashBack Query |
Дата | |
Msg-id | E1539E0ED7043848906A8FF995BDA57901CAF1B5@m0143.s-mxs.net обсуждение исходный текст |
Ответ на | Re: New feature request: FlashBack Query (Alvaro Herrera <alvherre@commandprompt.com>) |
Ответы |
Re: New feature request: FlashBack Query
|
Список | 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 по дате отправления: