Re: XID wraparound and busy databases

From: Darcy Buskermolen <darcy(at)dbitech(dot)ca>
To: pgsql-hackers(at)postgresql(dot)org, slony1-hackers(at)slony(dot)info
Subject: Re: XID wraparound and busy databases
Date: 2007-08-15 17:15:37
Message-ID: 200708151015.38162.darcy@dbitech.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wednesday 15 August 2007 09:49:52 Tom Lane wrote:
> Heikki Linnakangas <heikki(at)enterprisedb(dot)com> writes:
> > Maybe we can do something to reduce the xid consumption? For example,
> > reuse xids for read-only queries.
>
> Hmm, that's an idea.
>
> More simply, just keep the current transaction open (resetting
> everything but the XID) if we have made no changes by the time we're
> told to commit or rollback ... which is something we track already,
> so as not to waste cycles on useless commit XLOG records.

Jan and myself were discussing something like this as it would relate to a
subscribe process for slony.

Jan care to summerize your thoughts on this?

>
> You'd want some upper limit on transaction lifetime, so as to avoid the
> "long lived transactions hurt VACUUM" problem, but even reusing a single
> xact for a few seconds would pretty much eliminate this issue, I bet.
> It's hard to see how anyone could be doing 6K xacts/sec unless most are
> read-only.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2007-08-15 17:41:08 Re: Index Tuple Compression Approach?
Previous Message Decibel! 2007-08-15 17:07:56 Re: XID wraparound and busy databases