| От | Tom Lane |
|---|---|
| Тема | Re: Relative ordering in array aggregation |
| Дата | |
| Msg-id | 16259.1297298015@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Relative ordering in array aggregation (prakashn@uci.edu) |
| Список | pgsql-general |
prakashn@uci.edu writes: > I'm using 8.3.3. I came across the array_accum aggregate function in > the docs: > http://www.postgresql.org/docs/8.3/interactive/xaggr.html > This would be very useful to me, but I have a question about ordering > of values. If I use more than one array_accum in the same select > clause, is there any reliable correspondence between the order of > elements in the returned arrays? As long as you don't use DISTINCT (or, in more recent versions than 8.3, within-aggregate ordering of the input rows), all aggregates in the same SELECT list should receive the input rows in the same order. regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера