Confusing remark about UPSERT in fdwhandler.sgml

Поиск
Список
Период
Сортировка
От Etsuro Fujita
Тема Confusing remark about UPSERT in fdwhandler.sgml
Дата
Msg-id 560E39A9.5090006@lab.ntt.co.jp
обсуждение исходный текст
Ответы Re: Confusing remark about UPSERT in fdwhandler.sgml  (Peter Geoghegan <pg@heroku.com>)
Список pgsql-hackers
The following is a remark about UPSERT in fdwhandler.sgml.

     <command>INSERT</> with an <literal>ON CONFLICT</> clause does not
     support specifying the conflict target, as remote constraints are not
     locally known. This in turn implies that <literal>ON CONFLICT DO
     UPDATE</> is not supported, since the specification is mandatory there.

ISTM that the sentence "as remote constraints are not locally known" is
somewhat confusing, because check constrains on remote tables can be
defined locally in 9.5.  How about "unique constraints or exclusion
constraints on remote tables are not locally known"?  Attached is a
patch for that.

Best regards,
Etsuro Fujita

Вложения

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

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: [PROPOSAL] VACUUM Progress Checker.
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Confusing remark about UPSERT in fdwhandler.sgml