]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix BuildIndexValueDescription for expressions
authorStephen Frost <sfrost@snowman.net>
Fri, 30 Jan 2015 03:00:08 +0000 (22:00 -0500)
committerStephen Frost <sfrost@snowman.net>
Fri, 30 Jan 2015 03:00:08 +0000 (22:00 -0500)
commitda8954b76b8eb288cca8b2707a65b1d4efa0b700
treec3c1318b150d0108fe7d13baedecc794e8df05cd
parentdc9a506e68f7d2e5a3c23fadb6143c03f99ecee1
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