• Andres Freund's avatar
    Fix two problems in infer_arbiter_indexes(). · bab64ef9
    Andres Freund authored
    The first is a pretty simple bug where a relcache entry is used after
    the relation is closed. In this particular situation it does not appear
    to have bad consequences unless compiled with RELCACHE_FORCE_RELEASE.
    
    The second is that infer_arbiter_indexes() skipped indexes that aren't
    yet valid according to indcheckxmin. That's not required here, because
    uniqueness checks don't care about visibility according to an older
    snapshot.  While thats not really a bug, it makes things undesirably
    non-deterministic.  There is some hope that this explains a test failure
    on buildfarm member jaguarundi.
    
    Discussion: 9096.1431102730@sss.pgh.pa.us
    bab64ef9
plancat.c 44.9 KB