Improve wrong-tuple-type error reports in contrib/tablefunc.
commit76904eda25500dd4c6969f3a2a7c0f00146fd763
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 9 Mar 2024 20:48:21 +0000 (9 15:48 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 9 Mar 2024 20:48:21 +0000 (9 15:48 -0500)
treec9341001708602037f133481b479c2c8985a6bfd
parentb0289574bdf1202248201a3143d1459bdf5727fd
Improve wrong-tuple-type error reports in contrib/tablefunc.

These messages were fairly confusing, and didn't match the
column names used in the SGML docs.  Try to improve that.
Also use error codes more specific than ERRCODE_SYNTAX_ERROR.

Patch by me, reviewed by Joe Conway

Discussion: https://postgr.es/m/18937.1709676295@sss.pgh.pa.us
contrib/tablefunc/expected/tablefunc.out
contrib/tablefunc/sql/tablefunc.sql
contrib/tablefunc/tablefunc.c