Re: LOCK for non-tables

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: LOCK for non-tables
Дата
Msg-id 1295035017.23290.90.camel@ebony
обсуждение исходный текст
Ответ на Re: LOCK for non-tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: LOCK for non-tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, 2011-01-14 at 14:48 -0500, Tom Lane wrote:

> In any case I'd rather break apps using "LOCK foo NOWAIT" than break
> every application using any form of LOCK at all, which is what I think
> your proposal will amount to in practice. 

Can I suggest that we don't break anything at all?

pg_lock_object(objectname, objecttype, mode);
or
pg_lock_sequence(name, mode);

is all we need...

-- Simon Riggs           http://www.2ndQuadrant.com/books/PostgreSQL Development, 24x7 Support, Training and Services



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

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: LOCK for non-tables
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: SQL/MED - FDW API