]> granicus.if.org Git - postgresql/commit
Run COPY OUT in a temporary memory context that's reset once per row,
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Dec 2002 18:14:22 +0000 (18:14 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Dec 2002 18:14:22 +0000 (18:14 +0000)
commit3a18f01b7aa5f1358156118b58d753c879a60391
treeed146c6cb17ff6cfe91dc5b807eda887abb288d6
parent2b7ec402c41f6112087b1bf2171872d58151cd45
Run COPY OUT in a temporary memory context that's reset once per row,
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.
src/backend/commands/copy.c