Re: Multiple Xids in PGPROC?
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@dcc.uchile.cl>
Cc: Hackers <pgsql-hackers@postgresql.org>
Date: 2004-05-05T17:38:02Z
Lists: pgsql-hackers
Alvaro Herrera <alvherre@dcc.uchile.cl> writes: > (I'd like to avoid the pg_subtrans lookup in the non-subtransaction case, > but I don't see how to do that.) Could we afford to make xids self-identifying? For instance, odd numbers are base xacts, even numbers are sub xacts. This would in the worst case cause us to cycle through the XID space twice as fast as we need to, but I'm not convinced that's a big problem. regards, tom lane