Re: nested xacts and phantom Xids
От | Tom Lane |
---|---|
Тема | Re: nested xacts and phantom Xids |
Дата | |
Msg-id | 9356.1087871339@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: nested xacts and phantom Xids (Alvaro Herrera <alvherre@dcc.uchile.cl>) |
Ответы |
Re: nested xacts and phantom Xids
|
Список | pgsql-patches |
Alvaro Herrera <alvherre@dcc.uchile.cl> writes: > Regarding the invalidation messages, what I'm currently looking at is to > add a TransactionId to each message, which will be CurrentTransactionId > for each new message. When a subxact commits, all its messages are > relabeled to its parent. When a subxact aborts, all messages labeled > with its TransactionId are locally processed and discarded. Sounds plausible offhand. > This is tricky because chunks are prepended to the queue, but it also > means we can stop processing as soon as a message belongs to another > transaction. AFAIR there isn't any essential semantics to the ordering of the queue entries, so you can probably get away with reordering if that makes life any easier. Also, rather than labeling each entry individually, it might be better to keep a separate list for each level of transaction. Then instead of relabeling, you'd just concat the subtrans list to its parent's. Seems like this should be faster and less storage. regards, tom lane
В списке pgsql-patches по дате отправления: