pgsql: Improve wrong-tuple-type error reports in contrib/tablefunc. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Improve wrong-tuple-type error reports in contrib/tablefunc.
Date
Msg-id [email protected]
Whole thread Raw
List pgsql-committers
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/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/76904eda25500dd4c6969f3a2a7c0f00146fd763

Modified Files
--------------
contrib/tablefunc/expected/tablefunc.out |  85 ++++++++++++++--
contrib/tablefunc/sql/tablefunc.sql      |  42 ++++++++
contrib/tablefunc/tablefunc.c            | 169 ++++++++++++++-----------------
3 files changed, 195 insertions(+), 101 deletions(-)


pgsql-committers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: pgsql: Further further fix pg_upgrade crossversion test for adminpack.
Next
From: Tom Lane
Date:
Subject: pgsql: Simplify and merge unwanted-module drop logic in AdjustUpgrade.p