]> granicus.if.org Git - postgresql/commit
Infer functional dependency past RelabelType
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 12 Oct 2017 15:23:47 +0000 (17:23 +0200)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 12 Oct 2017 15:23:47 +0000 (17:23 +0200)
commite9ef11ac8bb2acc2d2462fc17ec3291a959589e7
tree3945717c789948171cd0f85d0995fe64baf54d48
parent360fd1a7b2fe779cc9e696b813b12f6a8e83b558
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