pgsql: Allow rel_is_distinct_for() to look through RelabelType below Op

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Allow rel_is_distinct_for() to look through RelabelType below Op
Date: 2017-09-17 19:29:05
Message-ID: E1dtfFZ-0003wH-2D@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Allow rel_is_distinct_for() to look through RelabelType below OpExpr.

This lets it do the right thing for, eg, varchar columns.
Back-patch to 9.5 where this logic appeared.

David Rowley, per report from Kim Rose Carlsen

Discussion: https://postgr.es/m/VI1PR05MB17091F9A9876528055D6A827C76D0@VI1PR05MB1709.eurprd05.prod.outlook.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6f44fe7f121ac7c29c1ac8553e4e209f9c3bfbcb

Modified Files
--------------
src/backend/optimizer/plan/analyzejoins.c | 8 ++++++++
1 file changed, 8 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-09-17 21:04:32 pgsql: Doc: update v10 release notes through today.
Previous Message Tom Lane 2017-09-17 18:50:23 pgsql: Fix possible dangling pointer dereference in trigger.c.