pgsql: Make contrib/tablefunc crosstab() also check typmod

From: Joe Conway <mail(at)joeconway(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make contrib/tablefunc crosstab() also check typmod
Date: 2024-03-09 22:34:02
Message-ID: E1rj5GT-002yzP-SB@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make contrib/tablefunc crosstab() also check typmod

contrib/tablefunc connectby() checks both type OID and typmod for
its output columns while crosstab() only checks type OID. Fix that
by makeing the crosstab() check look more like the connectby() check.

Reported-by: Tom Lane
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/flat/18937.1709676295%40sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/81d13a8dc066e571dca032da0a5fc1d81214d2bb

Modified Files
--------------
contrib/tablefunc/tablefunc.c | 32 +++++++++++++++++++-------------
1 file changed, 19 insertions(+), 13 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2024-03-09 22:50:15 pgsql: Catalog changes preparing for builtin collation provider.
Previous Message Tom Lane 2024-03-09 21:20:51 pgsql: Simplify and merge unwanted-module drop logic in AdjustUpgrade.p