Re: updated patch for foreach stmt

Поиск
Список
Период
Сортировка
Искать
От
Stephen Frost
Тема
Re: updated patch for foreach stmt
Дата
Msg-id
20110208210005.GR4116@tamriel.snowman.net
Ответ на
Список
Дерево обсуждения
updated patch for foreach stmt Pavel Stehule <pavel.stehule@gmail.com>
Re: updated patch for foreach stmt Stephen Frost <sfrost@snowman.net>
Re: updated patch for foreach stmt Robert Haas <robertmhaas@gmail.com>
Re: updated patch for foreach stmt Stephen Frost <sfrost@snowman.net>
Re: updated patch for foreach stmt Pavel Stehule <pavel.stehule@gmail.com>
Re: updated patch for foreach stmt Stephen Frost <sfrost@snowman.net>
Re: updated patch for foreach stmt Tom Lane <tgl@sss.pgh.pa.us>
Re: updated patch for foreach stmt Robert Haas <robertmhaas@gmail.com>
Re: updated patch for foreach stmt Stephen Frost <sfrost@snowman.net>
Re: updated patch for foreach stmt Andrew Dunstan <andrew@dunslane.net>
Re: updated patch for foreach stmt Tom Lane <tgl@sss.pgh.pa.us>
Re: updated patch for foreach stmt Pavel Stehule <pavel.stehule@gmail.com>
Re: updated patch for foreach stmt Pavel Stehule <pavel.stehule@gmail.com>
Re: updated patch for foreach stmt Stephen Frost <sfrost@snowman.net>
Re: updated patch for foreach stmt Tom Lane <tgl@sss.pgh.pa.us>
* Robert Haas (robertmhaas@gmail.com) wrote:
> Amen to that!

Hopefully it helped. :)

> I think the syntax Tom suggested before was FOREACH thingy IN ARRAY
> arr rather than just FOREACH thingy IN arr.  That's probably a good
> idea, because it gives us an escape hatch against needing to invent
> yet another variant of this syntax - the word immediately following IN
> can be known with confidence to be intended as a keyword rather than
> as part of the expression.

Alright, alright, *I* don't care that much, though I do feel it's a bit
excessive.  Updated patch against HEAD attached.

commit a5d32fa41fbbbd9ace465f62be714366990061d4
Author: Stephen Frost 
Date:   Tue Feb 8 15:57:40 2011 -0500

    PL/PgSQL FOREACH - Add ARRAY keyword
    
    Add ARRAY as required after IN when using FOREACH, to
    future-proof against later kinds of FOREACH commands.

	Thanks,

		Stephen
В списке pgsql-hackers по дате отправления
От: Dimitri Fontaine
Дата:
От: Pavel Stehule
Дата:
FAQ