Re: Recursive SQL functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Recursive SQL functions
Дата
Msg-id 22630.1003016351@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Recursive SQL functions  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> I was wondering whether, as a future project, we could make this more
> convenient by parsing the body of the function with the binding of the
> function already in effect.

Seems like a simple rearrangement of the code.  First insert the pg_proc
entry, then CommandCounterIncrement, then do the parsing/checking of the
function body.  Given the CCI, the new entry will be visible for the
checking --- and if we error out, it rolls back just fine anyway.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Pre-forking backend
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: pg_client_encoding