Re: pgsql: Rearrange vacuum-related bits in PGPROC as a bitmask, to better

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: pgsql: Rearrange vacuum-related bits in PGPROC as a bitmask, to better
Дата
Msg-id 20071024225413.GB4626@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: pgsql: Rearrange vacuum-related bits in PGPROC as a bitmask, to better  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
Tom Lane wrote:
> alvherre@postgresql.org (Alvaro Herrera) writes:
> > Rearrange vacuum-related bits in PGPROC as a bitmask, to better support
> > having several of them.  Add two more flags: whether the process is
> > executing an ANALYZE, and whether a vacuum is for Xid wraparound (which
> > is obviously only set by autovacuum).
>
> Is the explicit reset of PROC_VACUUM_FOR_WRAPAROUND (about line 2140
> of autovacuum.c) actually needed?

Probably not.  Actually I was just wondering if it was possible to
commit the transaction opened for the previous vacuum sooner, which
would clear that bit and also release the locks on the vacuumed
relation.  But that's probably too much of a hassle and a wasted Xid or
two.

--
Alvaro Herrera                        http://www.advogato.org/person/alvherre
"Ellos andaban todos desnudos como su madre los parió, y también las mujeres,
aunque no vi más que una, harto moza, y todos los que yo vi eran todos
mancebos, que ninguno vi de edad de más de XXX años" (Cristóbal Colón)

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Rearrange vacuum-related bits in PGPROC as a bitmask, to better
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Remove obsolete statement that you can't update through a cursor.