• Amit Kapila's avatar
    Fix subscriber invalid memory access on DDL. · 04c8a69c
    Amit Kapila authored
    This patch allows building the local relmap cache for a subscribed
    relation after processing pending invalidation messages and potential
    relcache updates.  Without this, the attributes in the local cache don't
    tally with the updated relcache entry leading to invalid memory access.
    
    Reported-by Jehan-Guillaume de Rorthais
    Author: Jehan-Guillaume de Rorthais and Vignesh C
    Reviewed-by: Amit Kapila
    Backpatch-through: 10
    Discussion: https://postgr.es/m/20191025175929.7e90dbf5@firost
    04c8a69c
relation.c 12.2 KB