Reject opclass options in ON CONFLICT clause

Álvaro Herrera <alvherre@kurilemu.de>

Commit: 630a93799d538c35c94187e07ef64d566a573a4e
Author: Álvaro Herrera <alvherre@kurilemu.de>
Date: 2025-12-12T13:26:42Z
Reject opclass options in ON CONFLICT clause

It's as pointless as ASC/DESC and NULLS FIRST/LAST are, so reject all of
them in the same way.  While at it, normalize the others' error messages
to have less translatable strings.  Add tests for these errors.

Noticed while reviewing recent INSERT ON CONFLICT patches.

Author: Álvaro Herrera <alvherre@kurilemu.de>
Reviewed-by: Peter Geoghegan <pg@bowt.ie>
Discussion: https://postgr.es/m/202511271516.oiefpvn3z27m@alvherre.pgsql

Files

Discussion