]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Minor cleanup of column-level priv fix
authorStephen Frost <sfrost@snowman.net>
Tue, 17 Feb 2015 20:36:51 +0000 (15:36 -0500)
committerStephen Frost <sfrost@snowman.net>
Tue, 17 Feb 2015 20:36:51 +0000 (15:36 -0500)
commit2ed7ef9219f24e99f416b120b1f1841c375c1b51
treed900ea754e26c583536fe265ca41639c6b2346df
parente48ce4f33d97623409f849d944e9e6e2dbd51e1c
Minor cleanup of column-level priv fix

Commit 9406884af19e2620a14059e64d4eb6ab430ab328 cleaned up
column-privilege related leaks in various error-message paths, but ended
up including a few more things than it should have in the back branches.

Specifically, there's no need for the GetModifiedColumns macro in
execMain.c as 9.1 and older didn't include the row in check constraint
violations.  Further, the regression tests added to check those cases
aren't necessary.

This patch removes the GetModifiedColumns macro from execMain.c, removes
the comment which was added to trigger.c related to the duplicate macro
definition, and removes the check-constraint-related regression tests.

Pointed out by Robert.

Back-patched to 9.1 and 9.0.
src/backend/commands/trigger.c
src/backend/executor/execMain.c
src/test/regress/expected/privileges.out
src/test/regress/sql/privileges.sql