Doc: improve description of UNION/INTERSECT/EXCEPT syntax.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Oct 2021 14:24:14 +0000 (10:24 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Oct 2021 14:24:14 +0000 (10:24 -0400)
commitf3fec23dbdead113700fb1b401b681fa24f1e4f4
tree205cba870d8107fa7ef9916cf2acdc044f784b22
parentf6b5d05ba9a4ac7c5ebec76045c6e0afcf7c9eec
Doc: improve description of UNION/INTERSECT/EXCEPT syntax.

queries.sgml failed to mention the rather important point that
INTERSECT binds more tightly than UNION or EXCEPT.  I thought
it could also use more discussion of the role of parentheses
in these constructs.

Per gripe from Christopher Painter-Wakefield.

Discussion: https://postgr.es/m/163338891727.12510.3939775743980651160@wrigleys.postgresql.org
doc/src/sgml/queries.sgml