Re: relation ### modified while in use

Поиск
Список
Период
Сортировка
От Alex Pilosov
Тема Re: relation ### modified while in use
Дата
Msg-id Pine.BSO.4.10.10010230115280.22422-100000@spider.pilosoft.com
обсуждение исходный текст
Ответ на Re: relation ### modified while in use  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: relation ### modified while in use  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, 23 Oct 2000, Tom Lane wrote:

>     begin;
>     select * from foo;  -- gets AccessShareLock
>     LOCK TABLE foo;        -- gets AccessExclusiveLock
>     ...
>     end;
> 
> this will work currently because the SELECT releases AccessShareLock
> when done, but it will deadlock if SELECT does not release that lock.
Probably a silly question, but since this is the same transaction,
couldn't the lock be 'upgraded' without a problem? 

Or postgres doesn't currently have idea of lock upgrades...?

-alex





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

Предыдущее
От: Alex Pilosov
Дата:
Сообщение: Re: relation ### modified while in use
Следующее
От: Tom Lane
Дата:
Сообщение: Re: relation ### modified while in use