• Tom Lane's avatar
    Fix failure-to-copy bug in commit 6f6b99d1. · fdf87ed4
    Tom Lane authored
    The previous coding of get_qual_for_list() was careful to copy everything
    it was using from the input data structure.  The new version missed
    making a copy of pass-by-ref datum values that it's inserting into Consts.
    This is not optional, however, as revealed by buildfarm failures on
    machines running -DRELCACHE_FORCE_RELEASE: we're copying from a relcache
    entry that could go away before the required lifespan of our output
    expression.  I'm pretty sure -DCLOBBER_CACHE_ALWAYS machines won't like
    this either, but none of them have reported in yet.
    fdf87ed4
partition.c 80.1 KB