pgsql: Further hacking on performance of COPY OUT.
pgsql: Further hacking on performance of COPY OUT.
От:
tgl@postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
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.
Modified Files:
--------------
pgsql/src/backend/commands:
copy.c (r1.265 -> r1.266)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/copy.c.diff?r1=1.265&r2=1.266)