Re: revised patch for PL/PgSQL table functions

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: revised patch for PL/PgSQL table functions
Дата
Msg-id 87n0r6w2fy.fsf@mailbox.samurai.com
обсуждение исходный текст
Ответ на Re: revised patch for PL/PgSQL table functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: revised patch for PL/PgSQL table functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Tom Lane <tgl@sss.pgh.pa.us> writes:
> Neil Conway <neilc@samurai.com> writes:
> > Here's another improved patch. I got the parser to accept 'RETURN
> > NEXT' properly

> Consider doing it the way that the main parser converts "UNION JOIN"
> into a single token --- viz, there's an outer filter that calls the
> lexer an extra time to look ahead one token when necessary.  Doing this
> in the lexer is really quite messy if you want to do it right (eg,
> deal correctly with comments between the two keywords).

Ah, ok -- thanks for the tip.

I've attached a revised patch: rediffed against CVS HEAD, changed the
RETURN NEXT parsing as suggested by Tom above, and made some more
minor cleanups to PL/PgSQL code.

Cheers,

Neil

--
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC

Вложения

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

Предыдущее
От: Joe Conway
Дата:
Сообщение: SRF memory mgmt patch (was [HACKERS] Concern about memory management with SRFs)
Следующее
От: Tom Lane
Дата:
Сообщение: Proposed patch for qual pushdown into UNION/INTERSECT