Add a paramtypmod field to Param nodes. This is dead weight for Params

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 9fa12ddda62549a0e0225220745c3bf89434dab3
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-12-10T22:13:27Z
Releases: 8.3.0
Add a paramtypmod field to Param nodes.  This is dead weight for Params
representing externally-supplied values, since the APIs that carry such
values only specify type not typmod.  However, for PARAM_SUBLINK Params
it is handy to carry the typmod of the sublink's output column.  This
is a much cleaner solution for the recently reported 'could not find
pathkey item to sort' and 'failed to find unique expression in subplan
tlist' bugs than my original 8.2-compatible patch.  Besides, someday we
might want to support typmods for external parameters ...

Files