• Tom Lane's avatar
    Fix oversight in commit b5415e3c. · b2edbbd0
    Tom Lane authored
    While rearranging code in tidpath.c, I overlooked the fact that we ought
    to check restriction_is_securely_promotable when trying to use a join
    clause as a TID qual.  Since tideq itself is leakproof, this wouldn't
    really allow any interesting leak AFAICT, but it still seems like we
    had better check it.
    
    For consistency with the corresponding logic in indxpath.c, also
    check rinfo->pseudoconstant.  I'm not sure right now that it's
    possible for that to be set in a join clause, but if it were,
    a match couldn't be made anyway.
    b2edbbd0
tidpath.c 11.9 KB