Result order of Insert ... returning - Mailing list pgsql-general

From fsfeel
Subject Result order of Insert ... returning
Date
Msg-id e6162692-12ba-49ad-91a6-f2ae87dd9d30@g11g2000yqe.googlegroups.com
Whole thread Raw
List pgsql-general
Hello!
I'm using INSERT ... RETURNING with multiply values, for example
INSERT INTO links.tags (name) VALUES ('tag x'), ('tag y') RETURNING
id, name
and fetch result. Is it guaranteed that order of returned rows will
always match order of values (that is, first returned row will be with
name='tag x' and second with 'tag y') or not? If not, is there any
nice method to order the result accordingly or i have to do it in
application (e.g. comparing "name"s)?
Thanks.

pgsql-general by date:

Previous
From: Justin Graf
Date:
Subject: Re: app table names
Next
From: "Joshua D. Drake"
Date:
Subject: Re: app table names