• Tom Lane's avatar
    Fix plpgsql tests for debug_invalidate_system_caches_always. · 39d4a153
    Tom Lane authored
    Commit c9d52984 resulted in having a couple more places where
    the error context stack for a failure varies depending on
    debug_invalidate_system_caches_always (nee CLOBBER_CACHE_ALWAYS).
    This is not very surprising, since we have to re-parse cached
    plans if the plan cache is clobbered.  Stabilize the expected
    test output by hiding the context stack in these places,
    as we've done elsewhere in this test script.
    
    (Another idea worth considering, now that we have
    debug_invalidate_system_caches_always, is to force it to zero for
    these test cases.  That seems like it'd risk reducing the coverage
    of cache-clobber testing, which might or might not be worth being
    able to verify that we get the expected error output in normal
    cases.  For the moment I just stuck with the existing technique.)
    
    In passing, update comments that referred to CLOBBER_CACHE_ALWAYS.
    
    Per buildfarm member hyrax.
    39d4a153
plpgsql_cache.out 2.32 KB