Re: FATAL: lock AccessShareLock on object 0/1260/0 is already held

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: FATAL: lock AccessShareLock on object 0/1260/0 is already held
Дата
Msg-id 7386.1315434323@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: FATAL: lock AccessShareLock on object 0/1260/0 is already held  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: FATAL: lock AccessShareLock on object 0/1260/0 is already held
Re: FATAL: lock AccessShareLock on object 0/1260/0 is already held
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> I thought about an error exit from client authentication, and that's a
> somewhat appealing explanation, but I can't quite see why we wouldn't
> clean up there the same as anywhere else.  The whole mechanism feels a
> bit rickety to me - we don't actually release locks; we just abort the
> transaction and *assume* that will cause locks to get released.

Well, transaction abort will call LockReleaseAll, which is carefully
coded to clean up the proclock lists regardless of what is in the
locallocks table, so I'm not sure why you find that any more rickety
than anything else.  But maybe it'd be interesting for Dave to stick a
LockReleaseAll call into ProcKill() and see if that makes things better.
(Dave: test that before you put it in production, I'm not totally sure
it's safe.)
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: daveg
Дата:
Сообщение: Re: FATAL: lock AccessShareLock on object 0/1260/0 is already held
Следующее
От: Tom Lane
Дата:
Сообщение: Re: FATAL: lock AccessShareLock on object 0/1260/0 is already held