]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Make contrib/tablefunc crosstab() also check typmod
authorJoe Conway <mail@joeconway.com>
Sat, 9 Mar 2024 22:32:32 +0000 (17:32 -0500)
committerJoe Conway <mail@joeconway.com>
Sat, 9 Mar 2024 22:32:32 +0000 (17:32 -0500)
commit81d13a8dc066e571dca032da0a5fc1d81214d2bb
tree103878b9df9ca177ccd0bda31d4482ade9669720
parent519443162dce52a3b10372338401d63084f720b8
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
contrib/tablefunc/tablefunc.c