Re: The vacuum-ignore-vacuum patch

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: The vacuum-ignore-vacuum patch
Дата
Msg-id 200607280205.k6S252m20133@momjian.us
обсуждение исходный текст
Ответ на Re: The vacuum-ignore-vacuum patch  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: The vacuum-ignore-vacuum patch  (Hannu Krosing <hannu@skype.net>)
Список pgsql-hackers
Another idea Jan had today was whether we could vacuum more rows if a
long-running backend is in serializable mode, like pg_dump.

---------------------------------------------------------------------------

Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > Tom Lane wrote:
> >> nonInVacuumXmin seems useless ... perhaps a vestige of some earlier
> >> version of the computation?
> 
> > Hmm, not useless at all really -- only a bug of mine.  Turns out the
> > notInVacuumXmin stuff is essential, so I put it back.
> 
> Uh, why?
> 
> > I noticed something however -- in calculating the OldestXmin we always
> > consider all DBs, even though there is a parameter for skipping backends
> > not in the current DB -- this is because the Xmin we store in PGPROC is
> > always computed using all backends.  The allDbs parameter only allows us
> > to skip the Xid of a transaction running elsewhere, but this is not very
> > helpful because the Xmin of transactions running in the local DB will
> > include those foreign Xids.
> 
> Yeah, this has been recognized for some time.  However the overhead of
> calculating local and global xmins in *every* transaction start is a
> significant reason not to do it.
> 
>             regards, tom lane
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>        subscribe-nomail command to majordomo@postgresql.org so that your
>        message can get through to the mailing list cleanly

--  Bruce Momjian   bruce@momjian.us EnterpriseDB    http://www.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: lastval exposes information that currval does not
Следующее
От: "Mónica Ivonne Herrera Alonso "
Дата:
Сообщение: Re: About "ALTER USER" command