]> granicus.if.org Git - postgresql/commit
Fix BuildIndexValueDescription for expressions
authorStephen Frost <sfrost@snowman.net>
Fri, 30 Jan 2015 02:59:43 +0000 (21:59 -0500)
committerStephen Frost <sfrost@snowman.net>
Fri, 30 Jan 2015 02:59:43 +0000 (21:59 -0500)
commitb1700055c2fb60292067a9e39554dedce68569f7
tree50c8fae114c8b184867a664d1e482b5d918e15f3
parent202621d0471b56c3355af1f2134cf868a6f9b4bd
Fix BuildIndexValueDescription for expressions

In 804b6b6db4dcfc590a468e7be390738f9f7755fb we modified
BuildIndexValueDescription to pay attention to which columns are visible
to the user, but unfortunatley that commit neglected to consider indexes
which are built on expressions.

Handle error-reporting of violations of constraint indexes based on
expressions by not returning any detail when the user does not have
table-level SELECT rights.

Backpatch to 9.0, as the prior commit was.

Pointed out by Tom.
src/backend/access/index/genam.c