Re: Lazy xid assignment V3 - Mailing list pgsql-patches

From Tom Lane
Subject Re: Lazy xid assignment V3
Date
Msg-id 24864.1188848864@sss.pgh.pa.us
Whole thread Raw
In response to Re: Lazy xid assignment V3  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
List pgsql-patches
"Heikki Linnakangas" <heikki@enterprisedb.com> writes:
> Yeah. If we did want to do something more, we could acquire the lock on
> vid conditionally, and use another vid if acquiring the lock fails. But
> I don't think it's necessary.

I was thinking more along the lines of looking through the ProcArray at
backend startup to ensure the sessionID we've chosen is unique, and
choosing another one if not.  But this would expend cycles with the
ProcArray locked, for something that seems exceedingly unlikely to
happen,

            regards, tom lane

pgsql-patches by date:

Previous
From: "Florian G. Pflug"
Date:
Subject: Re: Lazy xid assignment V3
Next
From: Bruce Momjian
Date:
Subject: HOT documentation README