• Andres Freund's avatar
    Remove ineffective check against dropped columns from slot_getattr(). · c670d0fa
    Andres Freund authored
    Before this commit slot_getattr() checked for dropped
    columns (returning NULL in that case), but only after checking for
    previously deformed columns. As slot_deform_tuple() does not contain
    such a check, the check in slot_getattr() would often not have been
    reached, depending on previous use of the slot.
    
    These days locking and plan invalidation ought to ensure that dropped
    columns are not accessed in query plans. Therefore this commit just
    drops the insufficient check in slot_getattr().  It's possible that
    we'll find some holes againt use of dropped columns, but if so, those
    need to be addressed independent of slot_getattr(), as most accesses
    don't go through that function anyway.
    
    Author: Andres Freund
    Discussion: https://postgr.es/m/20181107174403.zai7fedgcjoqx44p@alap3.anarazel.de
    c670d0fa
execTuples.c 43.7 KB