doc: improve description of privileges for MERGE and update glossary.
authorDean Rasheed <dean.a.rasheed@gmail.com>
Sat, 18 Nov 2023 12:37:40 +0000 (12:37 +0000)
committerDean Rasheed <dean.a.rasheed@gmail.com>
Sat, 18 Nov 2023 12:37:40 +0000 (12:37 +0000)
commitff772853d02e274684567620fba56dd1f10f2489
tree14fbdce62e30434d566c66961248471b92cafaef
parentaef521849b68d1eeb63c3dfbc4e92d66dc94a636
doc: improve description of privileges for MERGE and update glossary.

On the MERGE page, the description of the privileges required could be
taken to imply that the SELECT privilege is required on all columns of
the data source, whereas actually it is only required on the columns
referred to by conditions or expressions in the MERGE command. Re-word
it to make that a little clearer, and mention expressions as well as
conditions.

Also, add a glossary entry for MERGE, and nearby on the glossary page,
mention MERGE in the list of commands that cannot update a
materialized view.

Noted by Jian He. Patch by me, reviewed by Jian He.

Discussion: https://postgr.es/m/CACJufxHuSoRXKwr0MtSFLXuT2nFVWcVfEWhxg7qdP9h%2Bs3a%2BUw%40mail.gmail.com
doc/src/sgml/glossary.sgml
doc/src/sgml/ref/merge.sgml