Re: MAP syntax for arrays
От | Chapman Flack |
---|---|
Тема | Re: MAP syntax for arrays |
Дата | |
Msg-id | 4cc3a217-20a7-5a77-2085-099ca04a6e3f@anastigmatix.net обсуждение исходный текст |
Ответ на | Re: MAP syntax for arrays (Ildar Musin <i.musin@postgrespro.ru>) |
Ответы |
Re: MAP syntax for arrays
Re: MAP syntax for arrays |
Список | pgsql-hackers |
On 05/08/2018 08:57 AM, Ildar Musin wrote: > > select map (pow(2, x) - 1 for x in array[1,2,3,4,5]); I wonder how efficient an implementation would be possible strictly as a function, without grammar changes? While PostgreSQL certainly has extensions to and divergences from standard SQL syntax, some historical and some recent, it seems like there ought to be a highish bar for adding new ones; or, looking at it another way, has this feature been proposed to the SQL committee? It doesn't sound like a bad idea, and supporting new syntax for it would be an easier call it if it were known to be in an SQL draft somewhere. -Chap
В списке pgsql-hackers по дате отправления: