On Wed, Mar 12, 2008 at 10:44 PM, Heikki Linnakangas
<[EMAIL PROTECTED]> wrote:

>
>  Imagine that you start a transaction just before transaction
>  wrap-around, so that the top level XID is 2^31-10. Then you start 20
>  subtransactions. What XIDs will they get? Now how would you map those to
>  a bitmap?
>

Wait. Subtransaction ids are local to a transaction and always start from 1.
See this:

    /*
     * reinitialize within-transaction counters
     */
    s->subTransactionId = TopSubTransactionId;
    currentSubTransactionId = TopSubTransactionId;


>
>  It's not that common to have hundreds of thousands of subtransactions to
>  begin with..

True. But thats the case we are trying to solve here :-)


Thanks,
Pavan

-- 
Pavan Deolasee
EnterpriseDB http://www.enterprisedb.com

-- 
Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches

Reply via email to