Make contrib/tablefunc crosstab() also check typmod

Joe Conway <mail@joeconway.com>

Commit: 81d13a8dc066e571dca032da0a5fc1d81214d2bb
Author: Joe Conway <mail@joeconway.com>
Date: 2024-03-09T22:32:32Z
Releases: 17.0
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

Files

PathChange+/−
contrib/tablefunc/tablefunc.c modified +19 −13

Discussion

Cited messages not in the archive: flat/18937.1709676295@sss.pgh.pa.us