Re: BUG #17845: insert into on conflict bug .

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: BUG #17845: insert into on conflict bug .
Дата
Msg-id CAKFQuwZJSjVQDX5W00PeinCNvtm7Nt32z1Gzyavo+ebbEph1wg@mail.gmail.com
обсуждение исходный текст
Ответ на Re:Re: BUG #17845: insert into on conflict bug .  (德哥 <digoal@126.com>)
Ответы Re: BUG #17845: insert into on conflict bug .  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Thursday, March 16, 2023, 德哥 <digoal@126.com> wrote:
In this case, `where a.ts < exclude. ts` and `order by ts desc` are used. The ts of the tuple inserted first is the largest. So why throw an error? Throwing an error here is obviously not logically correct.

You’d get a duplicate value violation instead.  As it stands, which error you get is somewhat non-deterministic, but you will get one.

David J.
 

В списке pgsql-bugs по дате отправления:

Предыдущее
От: jian he
Дата:
Сообщение: Re: Re: BUG #17845: insert into on conflict bug .
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #17845: insert into on conflict bug .