Infer functional dependency past RelabelType

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: a01a3d931e5a14d60eec75f7945d5e66ff9cc575
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2017-10-12T15:32:48Z
Releases: 10.1
Infer functional dependency past RelabelType

Vars hidden within a RelabelType would not be detected as compatible
with some functional dependency.  Repair by properly ignoring the
RelabelType.

Author: David Rowley
Reviewed-by: Tomas Vondra
Discussion: https://postgr.es/m/CAKJS1f-y-UEy=rsBXynBOgiW1fKMr_LVoYSGL9QOc36mLEC-ww@mail.gmail.com

Files

PathChange+/−
src/backend/statistics/dependencies.c modified +8 −0

Discussion