On Sat, Apr 10, 2021 at 9:28 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> It does seem like a pointless prohibition, but the comment about it in
> the source code implies it was intentional. Peter, do you remember
> why?
No. The intention was to make it like CREATE INDEX. Apparently CREATE
INDEX allows the columns to be qualified, though, so that explanation
doesn't justify it.
There might have been a concern about users being confused about the
difference between what the INSERT docs call 'index_predicate' and
what they call 'condition' in the synopsis.
--
Peter Geoghegan