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

From Florian G. Pflug
Subject Re: Lazy xid assignment V4
Date
Msg-id 46DDE5A9.20303@phlo.org
Whole thread Raw
In response to Re: Lazy xid assignment V4  (Chris Browne <cbbrowne@acm.org>)
List pgsql-patches
Chris Browne wrote:
> Similarly, does it seem likely that Slony-I users would need to worry
> about this?
No.. it should have zero negative effects for Slony-I. In fact, it will
be an advantage in some cases I think. I remember something about
troubles with Slony-I if the in-use xids on a intermediate subscribe
(one that also acts as a origin) drift too bar away from those on the
master. If that still is an issue, than lazy xid assignment might help
a bit - it might reduce xid consumption on that intermediate subscriber.

In general, from a user's point of view, you only see a different if
you look at pg_locks - you will now see NULLs in the transaction
column, and might need to look at virtualtransaction for some use-cases.

[ thinking ] It's been quite a time since I last worked with slony - but
isn't there some code that tried to prevent blocking other queries by
looking at pg_locks? Or was that before you could conditionally acquire
a lock using SQL? Or am I totally mistaken? Anyway, if you *do* scan
pg_locks, than you might want to check those parts of the code.

greetings, Florian Pflug


pgsql-patches by date:

Previous
From: Chris Browne
Date:
Subject: Re: Lazy xid assignment V4
Next
From: Gregory Stark
Date:
Subject: Re: HOT documentation README