Re: ERROR: there is no unique or exclusion constraint matching the ONCONFLICT specification

Поиск
Список
Период
Сортировка
От Alexander Farber
Тема Re: ERROR: there is no unique or exclusion constraint matching the ONCONFLICT specification
Дата
Msg-id CAADeyWgfwDnFQ+wJo4eEPMnOOJgrrtQU6mNS4Xh40JqKy=0XRQ@mail.gmail.com
обсуждение исходный текст
Ответ на ERROR: there is no unique or exclusion constraint matching the ONCONFLICT specification  (Alexander Farber <alexander.farber@gmail.com>)
Список pgsql-general
Even the simpler INSERT statement 

INSERT INTO stats(uid, single_q_left)
SELECT player1, COUNT(*)
FROM games
WHERE hand1 = '{Q}'
GROUP BY player1
ON CONFLICT(uid) DO NOTHING;

produces the same error.

On Sat, May 5, 2018 at 4:49 PM, Alexander Farber <alexander.farber@gmail.com> wrote:

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

Предыдущее
От: Ian Harding
Дата:
Сообщение: Re: statement_timeout issue
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: comparison between 2 execution plans