OSDN Git Service

Further hacking on performance of COPY OUT. It seems that fwrite()'s
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 May 2006 22:50:02 +0000 (22:50 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 May 2006 22:50:02 +0000 (22:50 +0000)
commit4d63e267742a2afe481a34f4742c0551c6b0a112
tree5a798d94dd3fd80f9fc22349f4cb01520db5ed01
parent223ae6957f76f356bda883d427812d9214394f84
Further hacking on performance of COPY OUT.  It seems that fwrite()'s
per-call overhead is quite significant, at least on Linux: whatever
it's doing is more than just shoving the bytes into a buffer.  Buffering
the data so we can call fwrite() just once per row seems to be a win.
src/backend/commands/copy.c