• Amit Kapila's avatar
    Clear the local map when not used. · 9c32e4c3
    Amit Kapila authored
    After commit b0eaa4c5, we use a local map of pages to find the required
    space for small relations.  We do clear this map when we have found a block
    with enough free space, when we extend the relation, or on transaction
    abort so that it can be used next time.  However, we miss to clear it when
    we didn't find any pages to try from the map which leads to an assertion
    failure when we later tried to use it after relation extension.
    
    In the passing, I have improved some comments in this area.
    
    Reported-by: Tom Lane based on buildfarm results
    Author: Amit Kapila
    Reviewed-by: John Naylor
    Tested-by: Kuntal Ghosh
    Discussion: https://postgr.es/m/32368.1551114120@sss.pgh.pa.us
    9c32e4c3
hio.c 22.8 KB