[GENERAL] Are multiple array_aggs going to be in the same order? - Mailing list pgsql-general

From Guyren Howe
Subject [GENERAL] Are multiple array_aggs going to be in the same order?
Date
Msg-id 592DF768-0FF1-4795-AAE9-B5B684A0469D@gmail.com
Whole thread Raw
Responses Re: [GENERAL] Are multiple array_aggs going to be in the same order?  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-general
If I do a SELECT with a GROUP_BY and multiple ARRAY_AGGs, will the ARRAY_AGGs be guaranteed to have entries in the same (ie corresponding) order?

eg

SELECT
u.name,
ARRAY_AGG(o.order_date) AS order_dates,
ARRAY_AGG(o.order_total) AS order_totals
FROM
user u JOIN
orders o USING (user_id)
GROUP BY
u.user_id

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: [GENERAL] Unable to connect to Postgresql
Next
From: John Iliffe
Date:
Subject: Re: [GENERAL] Unable to connect to Postgresql