On Tue, Mar 11, 2008 at 6:04 PM, Heikki Linnakangas <[EMAIL PROTECTED]> wrote: > (moved to pgsql-patches, as there's a patch attached) > > > I couldn't let this case go, so I wrote a patch. I replaced the linked > list with an array that's enlarged at AtSubCommit_childXids when necessary. >
We can replace the array of xids with an array of flags where i'th flag is set to true if the corresponding subtransaction is committed. This would make lookup O(1) operation. Of course, the downside is when the array is sparse. Or we can switch to flag based representation once the array size grows beyond a limit. 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