Re: vacuum as flags in PGPROC

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: vacuum as flags in PGPROC
Дата
Msg-id 20071024154100.GH6559@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: vacuum as flags in PGPROC  (Heikki Linnakangas <heikki@enterprisedb.com>)
Список pgsql-patches
Heikki Linnakangas wrote:
> Alvaro Herrera wrote:
> > I did it that way (i.e. added locking) and then realized that it
> > shouldn't really be a problem, because the only one who can be setting
> > vacuum flags is the process itself.  Other processes can only read the
> > flags.
>
> It would still be a problem if there was any other fields that were
> updated by other processes, adjacent to the vacuum flags. I don't think
> that's the case, however.

Yeah, that's not the case currently.  Tom is right in that it's fragile
if we ever change the definition so that there is such a flag.  Maybe
this is solved by adding a comment however.

--
Alvaro Herrera                  http://www.amazon.com/gp/registry/5ZYLFMCVHXC
Jude: I wish humans laid eggs
Ringlord: Why would you want humans to lay eggs?
Jude: So I can eat them

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: vacuum as flags in PGPROC
Следующее
От: Tom Lane
Дата:
Сообщение: Re: vacuum as flags in PGPROC