Infer functional dependency past RelabelType
authorAlvaro Herrera
Thu, 12 Oct 2017 15:23:47 +0000 (17:23 +0200)
committerAlvaro Herrera
Thu, 12 Oct 2017 15:32:48 +0000 (17:32 +0200)
commita01a3d931e5a14d60eec75f7945d5e66ff9cc575
tree84cb6c2ba715bdfefe859096f771040fc8280f09
parent7cde649ab150412344ee50fc90f24d6fe891bcf0
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
src/backend/statistics/dependencies.c