pgsql: Fix BuildIndexValueDescription for expressions

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix BuildIndexValueDescription for expressions
Date: 2015-01-30 03:01:19
Message-ID: E1YH1pf-0003pJ-Vx@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/32bf6ee6ab5cdfa4247f984f864860d988a58dfe

Modified Files
--------------
src/backend/access/index/genam.c | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Stephen Frost 2015-01-30 03:01:20 pgsql: Fix BuildIndexValueDescription for expressions
Previous Message Bruce Momjian 2015-01-30 02:21:03 pgsql: doc: clarify libpq's 'verify-full' host name check