• Tom Lane's avatar
    In PrepareToInvalidateCacheTuple, don't force initialization of catalog · 649e856c
    Tom Lane authored
    caches that we don't actually need to touch.  This saves some trivial
    number of cycles and avoids certain cases of deadlock when doing concurrent
    VACUUM FULL on system catalogs.  Per report from Gavin Roy.
    
    Backpatch to 8.2.  In earlier versions, CatalogCacheInitializeCache didn't
    lock the relation so there's no deadlock risk (though that certainly had
    plenty of risks of its own).
    649e856c
catcache.c 46.9 KB