An aggregate function on ARRAY

Поиск
Список
Период
Сортировка
Искать
От
Rafal Pietrak
Тема
An aggregate function on ARRAY
Дата
Msg-id
1281530552.3141.75.camel@localhost.localdomain
Ответ на
Список
Дерево обсуждения
MySQL versus Postgres John Gage <jsmgage@numericable.fr>
Re: MySQL versus Postgres Vick Khera <vivek@khera.org>
Re: MySQL versus Postgres Rikard Bosnjakovic <rikard.bosnjakovic@gmail.com>
Re: MySQL versus Postgres Ian Barwick <barwick@gmail.com>
Re: MySQL versus Postgres Torsten Zühlsdorff <foo@meisterderspiele.de>
Re: MySQL versus Postgres Phillip Smith <lists@fukawi2.nl>
Re: MySQL versus Postgres John Gage <jsmgage@numericable.fr>
Re: MySQL versus Postgres Torsten Zühlsdorff <foo@meisterderspiele.de>
Re: MySQL versus Postgres Scott Frankel <frankel@circlesfx.com>
Re: MySQL versus Postgres Torsten Zühlsdorff <foo@meisterderspiele.de>
Re: MySQL versus Postgres Scott Frankel <frankel@circlesfx.com>
Re: MySQL versus Postgres "Michael A. Peters" <mpeters@shastaherps.org>
Re: MySQL versus Postgres Sandeep Srinivasa <sss@clearsenses.com>
Re: MySQL versus Postgres Allan Kamau <kamauallan@gmail.com>
Re: MySQL versus Postgres Sandeep Srinivasa <sss@clearsenses.com>
Re: MySQL versus Postgres Craig Ringer <craig@postnewspapers.com.au>
Re: MySQL versus Postgres Thomas Kellerer <spam_eater@gmx.net>
Re: MySQL versus Postgres Scott Marlowe <scott.marlowe@gmail.com>
Re: MySQL versus Postgres "Joshua J. Kugler" <joshua@eeinternet.com>
Re: MySQL versus Postgres merlyn@stonehenge.com (Randal L. Schwartz)
Re: MySQL versus Postgres "Joshua J. Kugler" <joshua@eeinternet.com>
Re: MySQL versus Postgres Jacqui Caren-home <jacqui.caren@ntlworld.com>
Re: MySQL versus Postgres Sandeep Srinivasa <sss@clearsenses.com>
Re: MySQL versus Postgres Alban Hertroys <dalroi@solfertje.student.utwente.nl>
Re: MySQL versus Postgres சிவகுமார் மா<masivakumar@gmail.com>
Re: MySQL versus Postgres David Boreham <david_list@boreham.org>
Re: MySQL versus Postgres Raymond O'Donnell <rod@iol.ie>
Re: MySQL versus Postgres Martin Gainty <mgainty@hotmail.com>
Re: MySQL versus Postgres Scott Ribe <scott_ribe@killerbytes.com>
Re: MySQL versus Postgres "Joshua D. Drake" <jd@commandprompt.com>
Re: MySQL versus Postgres "Joshua D. Drake" <jd@commandprompt.com>
Re: MySQL versus Postgres "Joshua J. Kugler" <joshua@eeinternet.com>
Re: MySQL versus Postgres Tom Lane <tgl@sss.pgh.pa.us>
Re: MySQL versus Postgres Pavel Stehule <pavel.stehule@gmail.com>
Re: MySQL versus Postgres Greg Smith <greg@2ndquadrant.com>
Re: MySQL versus Postgres Marco Colombo <pgsql@esiway.net>
An aggregate function on ARRAY Rafal Pietrak <rafal@zorro.isa-geek.com>
Re: An aggregate function on ARRAY Merlin Moncure <mmoncure@gmail.com>
Re: An aggregate function on ARRAY Rafal Pietrak <rafal@zorro.isa-geek.com>
Re: MySQL versus Postgres Greg Smith <greg@2ndquadrant.com>
Re: MySQL versus Postgres Marco Colombo <pgsql@esiway.net>
Re: MySQL versus Postgres Tom Lane <tgl@sss.pgh.pa.us>
Re: MySQL versus Postgres Marco Colombo <pgsql@esiway.net>
Re: MySQL versus Postgres Vick Khera <vivek@khera.org>
Re: MySQL versus Postgres "Joshua D. Drake" <jd@commandprompt.com>
Re: MySQL versus Postgres "Joshua D. Drake" <jd@commandprompt.com>
Re: MySQL versus Postgres Ma Sivakumar <masivakumar@gmail.com>
Re: MySQL versus Postgres Greg Smith <greg@2ndquadrant.com>
Re: MySQL versus Postgres Sandeep Srinivasa <sss@clearsenses.com>
Re: MySQL versus Postgres Greg Smith <greg@2ndquadrant.com>
Re: MySQL versus Postgres Scott Marlowe <scott.marlowe@gmail.com>
Re: MySQL versus Postgres Sandeep Srinivasa <sss@clearsenses.com>
Re: MySQL versus Postgres Ma Sivakumar <masivakumar@gmail.com>
Re: MySQL versus Postgres "Joshua D. Drake" <jd@commandprompt.com>
Re: MySQL versus Postgres "Joshua D. Drake" <jd@commandprompt.com>
Re: MySQL versus Postgres Greg Smith <greg@2ndquadrant.com>
Re: MySQL versus Postgres "Joshua D. Drake" <jd@commandprompt.com>
Re: MySQL versus Postgres "Joshua D. Drake" <jd@commandprompt.com>
Re: MySQL versus Postgres Tatsuo Ishii <ishii@postgresql.org>
Re: MySQL versus Postgres Greg Smith <greg@2ndquadrant.com>
Re: MySQL versus Postgres Tatsuo Ishii <ishii@postgresql.org>
Re: MySQL versus Postgres Craig Ringer <craig@postnewspapers.com.au>
Re: MySQL versus Postgres Ivan Sergio Borgonovo <mail@webthatworks.it>
Re: MySQL versus Postgres Ma Sivakumar <masivakumar@gmail.com>
Re: MySQL versus Postgres David Boreham <david_list@boreham.org>
Re: MySQL versus Postgres Greg Smith <greg@2ndquadrant.com>
Re: MySQL versus Postgres Leif Biberg Kristensen <leif@solumslekt.org>
Re: MySQL versus Postgres "Daniel Verite" <daniel@manitou-mail.org>
Re: MySQL versus Postgres Greg Smith <greg@2ndquadrant.com>
Re: MySQL versus Postgres Amitabh Kant <amitabhkant@gmail.com>
Re: MySQL versus Postgres zach cruise <zachc1980@gmail.com>
Re: MySQL versus Postgres Scott Marlowe <scott.marlowe@gmail.com>
Re: MySQL versus Postgres Peter Bex <Peter.Bex@xs4all.nl>
Re: MySQL versus Postgres Raymond O'Donnell <rod@iol.ie>
Re: MySQL versus Postgres Scott Marlowe <scott.marlowe@gmail.com>
Re: MySQL versus Postgres Peter Bex <Peter.Bex@xs4all.nl>
Re: MySQL versus Postgres Scott Marlowe <scott.marlowe@gmail.com>
Re: MySQL versus Postgres John Gage <jsmgage@numericable.fr>
Re: MySQL versus Postgres John Gage <jsmgage@numericable.fr>
Re: MySQL versus Postgres John Gage <jsmgage@numericable.fr>
Re: MySQL versus Postgres Thomas Kellerer <spam_eater@gmx.net>
Re: MySQL versus Postgres John Gage <jsmgage@numericable.fr>
Hi,

I've started using ARRAY data type recently, and I fell into the
following problem:

When I have a relatively large ARRAY (like [1:500]) takeing an aggregate
function on its elements is not so easy. One has to iterate all the
elements, like this: 

SELECT min(A[1]) as a1, min(A[2]) as a2, ...

This is because aggregate functions are not defined on ARRAY types. Or
may be there is an easier and more readable way to do that?

-R


В списке pgsql-general по дате отправления
От: Marco Colombo
Дата:
Сообщение: Re: MySQL versus Postgres
От: Merlin Moncure
Дата:
FAQ