Fix plpgsql's exec_move_row() to supply valid type OIDs to exec_assign_value()
commit43b6e1e534ec755ac0e43b1741bf72ffc9d79055
authortgl <tgl>
Mon, 1 Sep 2008 22:30:33 +0000 (1 22:30 +0000)
committertgl <tgl>
Mon, 1 Sep 2008 22:30:33 +0000 (1 22:30 +0000)
tree6ae0732c2af06b4ff301121987f712a1861c180b
parent199b0c5115829999cc87c85265d0c8851c02e4f8
Fix plpgsql's exec_move_row() to supply valid type OIDs to exec_assign_value()
whenever possible, as per bug report from Oleg Serov.  While at it, reorder
the operations in the RECORD case to avoid possible palloc failure while the
variable update is only partly complete.

Back-patch as far as 8.1.  Although the code of the particular function is
similar in 8.0, 8.0's support for composite fields in rows is sufficiently
broken elsewhere that it doesn't seem worth fixing this.
src/pl/plpgsql/src/pl_exec.c