Re: LOCK for non-tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: LOCK for non-tables
Дата
Msg-id 9237.1295198922@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: LOCK for non-tables  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: LOCK for non-tables  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> Do we wish to officially document LOCK without TABLE as a good idea to
> start avoiding, in case we decide to do something about that in the
> future?

I'm still not for fixing the ambiguity that way.  TABLE is an optional
noise word in other contexts, notably GRANT/REVOKE where that syntax is
dictated by SQL standard.  It would be inconsistent to have it be
required in LOCK.

I think we should deprecate using NOWAIT without an IN...MODE clause.

Another possibility is to disallow just the single caseLOCK tablename NOWAIT
ie, you can write NOWAIT if you include *either* the object type
or the IN...MODE clause.  This is not too hard as far as the grammar
is concerned, but I'm not exactly sure how to document it.
        regards, tom lane


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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: pg_basebackup for streaming base backups
Следующее
От: Tom Lane
Дата:
Сообщение: Re: auto-sizing wal_buffers