]> granicus.if.org Git - postgresql/commit
Fix plpgsql's issues with dropped columns in rowtypes in 8.4 branch.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Apr 2011 17:55:28 +0000 (13:55 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Apr 2011 17:55:28 +0000 (13:55 -0400)
commit5d3853a7fa40b28b44b14084863fd83a188c9a9e
treefa0bd919f89eb3752f29cb1650f63a8d524fa5bb
parentda311c7dbe4e166df9246f1df9c8ed62faea81dc
Fix plpgsql's issues with dropped columns in rowtypes in 8.4 branch.

This is a back-patch of commit dcb2bda9b7042dbf43f876c94ebf35d951de10e9 of
Aug 6 2009, which fixed assorted cases in which plpgsql would fail to cope
with composite types that contain any dropped columns.  Per discussion,
this fix has been out in 9.0 for long enough to make it improbable that it
creates any new bugs, so this is a low-risk fix.  To make it even lower
risk, I did not back-patch the changes in execQual.c, but just accepted
the duplication of code between there and tupconvert.c.  The added files
tupconvert.h and tupconvert.c match their current states in HEAD.
src/backend/access/common/Makefile
src/backend/access/common/tupconvert.c [new file with mode: 0644]
src/include/access/tupconvert.h [new file with mode: 0644]
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