Re: Lazy xid assignment V3

Поиск
Список
Период
Сортировка
Искать
От
Marko Kreen
Тема
Re: Lazy xid assignment V3
Дата
Msg-id
e51f66da0709030615h742fc998nf50549c09c66cba0@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Lazy xid assignment V3 "Florian G. Pflug" <fgp@phlo.org>
Re: Lazy xid assignment V3 Alvaro Herrera <alvherre@commandprompt.com>
Re: Lazy xid assignment V3 "Marko Kreen" <markokr@gmail.com>
Re: Lazy xid assignment V3 Alvaro Herrera <alvherre@commandprompt.com>
Re: Lazy xid assignment V3 "Marko Kreen" <markokr@gmail.com>
Re: Lazy xid assignment V3 "Heikki Linnakangas" <heikki@enterprisedb.com>
Re: Lazy xid assignment V3 Tom Lane <tgl@sss.pgh.pa.us>
Re: Lazy xid assignment V3 "Florian G. Pflug" <fgp@phlo.org>
Re: Lazy xid assignment V3 Tom Lane <tgl@sss.pgh.pa.us>
Re: Lazy xid assignment V3 "Florian G. Pflug" <fgp@phlo.org>
Re: Lazy xid assignment V3 "Heikki Linnakangas" <heikki@enterprisedb.com>
Re: Lazy xid assignment V3 Tom Lane <tgl@sss.pgh.pa.us>
Re: Lazy xid assignment V3 "Florian G. Pflug" <fgp@phlo.org>
On 9/3/07, Alvaro Herrera  wrote:
> Marko Kreen escribió:
> > On 9/3/07, Alvaro Herrera  wrote:
> > > Florian G. Pflug wrote:
> > > > Since we didn't really reach an agreement on how xid_age should behave,
> > > > I've reverted it back to the original version. So with this patch,
> > > > xid_age will just force assignment of a xid.
> > >
> > > Is this really a good idea?  I'm repeating myself, but a query like
> > >
> > > select age(xmin) from bigtable
> > >
> > > could accelerate Xid wraparound.  If the server is running close to the
> > > limit it could cause a shutdown to prevent the actual wraparound.
> >
> > Such query would take only one xid, which should not be a problem?
>
> My guess is that it would execute age(xid) once per tuple?  Even if all
> the tuples had the same xmin, there's no cache therefore it would
> consume as many Xids as there are tuples.
>
> Am I missing something?

First age() assigns CurrentXid, rest reuse it.

-- 
marko
В списке pgsql-patches по дате отправления
От: Alvaro Herrera
Дата:
Сообщение: Re: Lazy xid assignment V3
От: Tom Lane
Дата:
Сообщение: Re: Lazy xid assignment V3
FAQ