Update wording of INSERT ON CONFLICT "rows proposed for insertion"

Started by David G. Johnstonover 4 years ago2 messagesdocs
Jump to latest
#1David G. Johnston
david.g.johnston@gmail.com

Hey,

I suggest a minor rewording of:

https://www.postgresql.org/docs/devel/sql-insert.html

Current:
"The SET and WHERE clauses in ON CONFLICT DO UPDATE have access to the
existing row using the table's name (or an alias), and to [rows] proposed
for insertion using the special excluded table."

Becomes:
"The SET and WHERE clauses in ON CONFLICT DO UPDATE have access to the
existing row using the table's name (or an alias), and to [the
corresponding row] proposed for insertion using the special excluded table."

The plural "rows" just reads oddly since in any single evaluation only one
row is going to be present in the excluded table for the "existing row" in
the target table.

David J.

#2David G. Johnston
david.g.johnston@gmail.com
In reply to: David G. Johnston (#1)
Re: Update wording of INSERT ON CONFLICT "rows proposed for insertion"

On Tue, Mar 8, 2022 at 5:14 PM David G. Johnston <david.g.johnston@gmail.com>
wrote:

I suggest a minor rewording of:

https://www.postgresql.org/docs/devel/sql-insert.html

Concretely as attached. I did a bit more than minor work - I decided that
actually calling it a table in the docs didn't really fit how it behaves in
practice and so reworded the "table" into just "name". Please see the
commit message for more exposition.

David J.

Attachments:

t77182_2
v0001-on-conflict-excluded-is-name-not-table.patchapplication/octet-stream; name=v0001-on-conflict-excluded-is-name-not-table.patchDownload+6-7