Re: NO WAIT ...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: NO WAIT ...
Дата
Msg-id 24637.1077127587@sss.pgh.pa.us
обсуждение исходный текст
Ответ на NO WAIT ...  (Hans-Jürgen Schönig <postgres@cybertec.at>)
Ответы Re: NO WAIT ...  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: NO WAIT ...  (Hans-Jürgen Schönig <postgres@cybertec.at>)
Список pgsql-patches
=?ISO-8859-1?Q?Hans-J=FCrgen_Sch=F6nig?= <postgres@cybertec.at> writes:
> i have attached a patch implementing NO WAIT with the help of a GUC
> variable.

I consider this patch incredibly dangerous, as it affects *every* lock
taken, including system internal lock acquisitions.

I think it might be reasonable to implement a no-wait option on explicit
LOCK TABLE commands, and perhaps we could do it for SELECT FOR UPDATE
as well.  But it should not be done in a way that breaks internal lock
attempts.

Also, I don't care for the idea of a GUC variable affecting this.
See recent discussions about how changing fundamental semantics via
easily-changed GUC values is risky.  If we're going to do it we should
add syntax to the LOCK command so that apps explicitly request it.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Doing psql's lexing with flex
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: NO WAIT ...