Re: Sync Rep v19
Simon Riggs <simon@2ndquadrant.com>
From: Simon Riggs <simon@2ndQuadrant.com>
To: Fujii Masao <masao.fujii@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2011-03-04T11:08:17Z
Lists: pgsql-hackers
On Fri, 2011-03-04 at 10:51 +0000, Simon Riggs wrote: > > + else if (timeout > 0 && > > + TimestampDifferenceExceeds(GetCurrentTransactionStopTimestamp(), > > + wait_start, timeout)) > > > > If SetCurrentTransactionStopTimestamp() is called before (i.e., COMMIT case), > > the return value of GetCurrentTransactionStopTimestamp() is the same as > > "wait_start". So, in this case, the timeout never expires. > > Don't understand (still) OK, coffee has seeped into brain now, thanks. -- Simon Riggs http://www.2ndQuadrant.com/books/ PostgreSQL Development, 24x7 Support, Training and Services