• Tom Lane's avatar
    Run COPY OUT in a temporary memory context that's reset once per row, · 3a18f01b
    Tom Lane authored
    and eliminate its manual pfree() calls.  This solves the encoding-conversion
    bug recently reported, and should be faster and more robust than the
    original coding anyway.  For example, we are no longer at risk if
    datatype output routines leak memory or choose to return a constant string.
    3a18f01b
copy.c 38.8 KB