| От | Tom Lane |
|---|---|
| Тема | Re: remembering locks and dynahash.c |
| Дата | |
| Msg-id | 29637.1338444403@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | remembering locks and dynahash.c (Jeff Janes <jeff.janes@gmail.com>) |
| Список | pgsql-hackers |
Jeff Janes <jeff.janes@gmail.com> writes:
> I am working on making resource owner remember a limited number of
> locks, so it can reassign them more efficiently.
Check, per previous discussion.
> Currently I'm having resowner.c remember the LOCALLOCKTAG, because I
> thought that that was the only handle I could use. But now I'm
> wondering if I should remember the LOCALLOCK * instead.
I was envisioning LOCALLOCK *. dynahash will never move an existing
entry, and if the entry can be deleted while the resowner still holds a
pointer to it then you've got a logic bug.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера