Fix column privilege checking for cases where parent and child have different
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 5 Mar 2009 17:30:29 +0000 (17:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 5 Mar 2009 17:30:29 +0000 (17:30 +0000)
commit08eb37da4c4c8b29209573d499bbb9c3f5cb7525
treeffbc0c85833ff0c089f43aacf9d76ab9d5ed55de
parentff6c93bf51da56a2f07aa200f8b853fc415c6547
Fix column privilege checking for cases where parent and child have different
attribute numbering.  Also, a parent whole-row reference should not require
select privilege on child columns that aren't inherited from the parent.
Problem diagnosed by KaiGai Kohei, though this isn't exactly his patch.
src/backend/optimizer/prep/prepunion.c
src/test/regress/expected/privileges.out
src/test/regress/sql/privileges.sql