Re: vacuum as flags in PGPROC

From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: vacuum as flags in PGPROC
Date: 2007-10-24 15:30:37
Message-ID: 471F651D.9050903@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

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.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Alvaro Herrera 2007-10-24 15:41:00 Re: vacuum as flags in PGPROC
Previous Message Alvaro Herrera 2007-10-24 15:13:28 Re: vacuum as flags in PGPROC