Re: Why is RegisterPredicateLockingXid called while holding XidGenLock?
В списке pgsql-hackers по дате отправления:
| От | Dan Ports |
|---|---|
| Тема | Re: Why is RegisterPredicateLockingXid called while holding XidGenLock? |
| Дата | |
| Msg-id | 20110506041133.GC8503@csail.mit.edu обсуждение |
| Ответ на | Why is RegisterPredicateLockingXid called while holding XidGenLock? (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Why is RegisterPredicateLockingXid called while holding XidGenLock?
|
| Список | pgsql-hackers |
On Thu, May 05, 2011 at 11:12:40PM -0400, Tom Lane wrote: > Even if it's actually necessary to set up that data structure while > holding XidGenLock, I would *really* like the call to not be exactly > where it is. Good question. I don't believe it needs to be while XidGenLock is being held at all; certainly not in this particular place. All that really matters is that it happens before any backend starts seeing said xid in tuple headers. I believe the call can be moved over to AssignTransactionId. I'd probably put it at the end of that function, but it can go anywhere between there and where it is now. Do you have any preference? Dan -- Dan R. K. Ports MIT CSAIL http://drkp.net/
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера