]> granicus.if.org Git - postgresql/commit
Update per-column ACLs, not only per-table ACL, when changing table owner.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 21 Dec 2011 23:23:24 +0000 (18:23 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 21 Dec 2011 23:23:24 +0000 (18:23 -0500)
commit7443ab2b348d190e8784a2684a5b6ae91f7dcd4b
treef7ac86347e00aa29cb066bac46dc2906fc37d2fc
parent61dd2ffaff1be5768151e72aca030d7755255b26
Update per-column ACLs, not only per-table ACL, when changing table owner.

We forgot to modify column ACLs, so privileges were still shown as having
been granted by the old owner.  This meant that neither the new owner nor
a superuser could revoke the now-untraceable-to-table-owner permissions.
Per bug #6350 from Marc Balmer.

This has been wrong since column ACLs were added, so back-patch to 8.4.
src/backend/commands/tablecmds.c