]> granicus.if.org Git - postgresql/commit
Fix critical error noticed by Massimo: copy.c used to have a
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 Jun 1999 20:41:25 +0000 (20:41 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 Jun 1999 20:41:25 +0000 (20:41 +0000)
commitd9e223d53c5ca32ec6924e62b7b795a2fe08ab15
treea4727437006eef4062ba6bd1d19e6a0d166da650
parentaaf244247287b671db2d55098ed6aa774049a058
Fix critical error noticed by Massimo: copy.c used to have a
special hack to ensure it would close its output file even after failure
due to elog(ERROR) partway through the copy.  This is now unnecessary
because fd.c takes care of cleaning up open files at transaction abort;
worse, after fd.c closed the file copy.c would try to do so *again* at
the start of the next COPY command.  This would result in havoc in most
implementations of stdio library.
src/backend/commands/copy.c