Re: pre-parser query manipulation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pre-parser query manipulation
Дата
Msg-id 821.1174017741@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pre-parser query manipulation  (Randall Smith <randall@tnr.cc>)
Список pgsql-general
Randall Smith <randall@tnr.cc> writes:
> I'm at a loss as to how to remove the OF clause at the server.  It it
> possible to do it with a rule?

No, because the syntax error will occur long before any rule has a
chance to get involved.  You'd have to actually hack the C code
(see transformLockingClause in src/backend/parser/analyze.c).

It's unfortunate that somebody decided to use the standard FOR UPDATE
syntax to mean something that's got nearly 0 to do with what the spec
intends it to mean :-(.

            regards, tom lane

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

Предыдущее
От: louis gonzales
Дата:
Сообщение: Practical question.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Practical question.