Re: Latest version of Hot Standby patch

Simon Riggs <simon@2ndquadrant.com>

From: Simon Riggs <simon@2ndQuadrant.com>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2009-01-13T17:31:55Z
Lists: pgsql-hackers
On Wed, 2009-01-07 at 15:43 +0200, Heikki Linnakangas wrote:
> Normally, GetRunningTransactionData determines the xid of the latest 
> running xid by scanning the procarray. If the subxid cache has 
> overflowed, it simply gives up. Comment there suggests that it could 
> call ReadNewTransactionId() instead, like it does when there's no
> active xids in proc array. I think we should do that, or something
> else to alleviate the problem.
> 
> When there's no xids in the procarray, couldn't we just use 
> latestCompletedXid instead of calling ReadNewTransactionId()?

Done.

-- 
 Simon Riggs           www.2ndQuadrant.com
 PostgreSQL Training, Services and Support