]> granicus.if.org Git - postgresql/commit
Improve plpgsql's ability to cope with rowtypes containing dropped columns,
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 6 Aug 2009 20:44:32 +0000 (20:44 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 6 Aug 2009 20:44:32 +0000 (20:44 +0000)
commitdcb2bda9b7042dbf43f876c94ebf35d951de10e9
tree0d9ab8f54b720f105c6f3e05530ba69b623d55c2
parent40001705353845ea157ea081355bd0eeedd2673a
Improve plpgsql's ability to cope with rowtypes containing dropped columns,
by supporting conversions in places that used to demand exact rowtype match.

Since this issue is certain to come up elsewhere (in fact, already has,
in ExecEvalConvertRowtype), factor out the support code into new core
functions for tuple conversion.  I chose to put these in a new source
file since heaptuple.c is already overly long.

Heavily revised version of a patch by Pavel Stehule.
src/backend/access/common/Makefile
src/backend/access/common/tupconvert.c [new file with mode: 0644]
src/backend/executor/execQual.c
src/include/access/tupconvert.h [new file with mode: 0644]
src/include/nodes/execnodes.h
src/pl/plpgsql/src/nls.mk
src/pl/plpgsql/src/pl_exec.c
src/test/regress/expected/plpgsql.out
src/test/regress/sql/plpgsql.sql