Are you guaranteed to get the same order back when using Prefer: return=representation? #2953
Answered
by
wolfgangwalther
ewan-escience
asked this question in
Q&A
-
When you insert/upsert multiple rows in a table and use |
Beta Was this translation helpful? Give feedback.
Answered by
wolfgangwalther
Sep 15, 2023
Replies: 1 comment 1 reply
-
No, there is no such guarantee. See also a thread on pgsql-general from earlier this year: https://www.postgresql.org/message-id/flat/2b8d529a-0ec-4e8f-26d3-2ef2881a2d49%40evolvis.org#3fdbbeb01a034274951b238c30854704 Given that there is no "proper" way to do it in PostgreSQL itself, we don't do it here either. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wolfgangwalther
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, there is no such guarantee. See also a thread on pgsql-general from earlier this year: https://www.postgresql.org/message-id/flat/2b8d529a-0ec-4e8f-26d3-2ef2881a2d49%40evolvis.org#3fdbbeb01a034274951b238c30854704
Given that there is no "proper" way to do it in PostgreSQL itself, we don't do it here either.