Confusing remark about UPSERT in fdwhandler.sgml - Mailing list pgsql-hackers

From Etsuro Fujita
Subject Confusing remark about UPSERT in fdwhandler.sgml
Date
Msg-id 560E39A9.5090006@lab.ntt.co.jp
Whole thread Raw
Responses Re: Confusing remark about UPSERT in fdwhandler.sgml  (Peter Geoghegan <pg@heroku.com>)
List 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

Attachment

pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: [PROPOSAL] VACUUM Progress Checker.
Next
From: Peter Geoghegan
Date:
Subject: Re: Confusing remark about UPSERT in fdwhandler.sgml