Allow rel_is_distinct_for() to look through RelabelType below OpExpr.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/plan/analyzejoins.c | modified | +8 −0 |
Discussion
- Remove useless joins (VARCHAR vs TEXT) 3 messages · 2017-09-16 → 2017-09-17