Re: [HACKERS] Syntax of LOCK TABLE ...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Syntax of LOCK TABLE ...
Дата
Msg-id 24859.926870719@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Syntax of LOCK TABLE ...  (David Sauer <davids@orfinet.cz>)
Список pgsql-hackers
David Sauer <davids@orfinet.cz> writes:
> => lock table t row share mode;
> LOCK TABLE
>  ... this works
> but:
> => lock table t IN row share mode;
> ERROR:  parser: parse error at or near "in"
>   .... but this not

> It is mistake in grammar, or is there all OK ?

I see this behavior too, and a quick look at gram.y shows that indeed
it is not expecting IN in a LOCK statement.  I do not know whether the
standard permits (or requires?) the IN keyword, so I don't know whether
to make the change...
        regards, tom lane


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

Предыдущее
От: Vazsonyi Peter
Дата:
Сообщение: Re: [HACKERS] Re: sequences vs. transactions
Следующее
От: Vadim Mikheev
Дата:
Сообщение: Re: [HACKERS] Syntax of LOCK TABLE ...