Fix ExecMakeTableFunctionResult to verify that all rows returned by a SRF
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 26 Aug 2010 18:54:44 +0000 (18:54 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 26 Aug 2010 18:54:44 +0000 (18:54 +0000)
commit62275d55c44fb72d6e1102ef5e5b7d014fff8293
tree138cd939cf5df23a18ae426f04a20b24a2956e8a
parentb98317c8aa8b5ff900319dc4721f73669ea40870
Fix ExecMakeTableFunctionResult to verify that all rows returned by a SRF
returning "record" actually do have the same rowtype.  This is needed because
the parser can't realistically enforce that they will all have the same typmod,
as seen in a recent example from David Wheeler.

Back-patch to 8.0, which is as far back as we have the notion of RECORD
subtypes being distinguished by typmod.  Wheeler's example depends on
8.4-and-up features, but I suspect there may be ways to provoke similar
failures before 8.4.
src/backend/executor/execQual.c