Result order of Insert ... returning

Поиск
Список
Период
Сортировка
От fsfeel
Тема Result order of Insert ... returning
Дата
Msg-id e6162692-12ba-49ad-91a6-f2ae87dd9d30@g11g2000yqe.googlegroups.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Justin Graf
Дата:
Сообщение: Re: app table names
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: app table names