pgsql/src backend/commands/copy.c backend/libp ...
pgsql/src backend/commands/copy.c backend/libp ...
От:
tgl@postgresql.org
Дата:
CVSROOT: /cvsroot Module name: pgsql Changes by: tgl@postgresql.org 01/12/04 14:40:17 Modified files: src/backend/commands: copy.c src/backend/libpq: pqcomm.c src/backend/tcop: postgres.c src/include/libpq: libpq.h Log message: Replace pq_getbytes(&ch, 1) calls with pq_getbyte(), which is easier to use and significantly faster. This tweak saves 25% (!) of the runtime of COPY IN in a test with 8000-character lines. I wouldn't normally commit a performance improvement this late in the cycle, but 25% got my attention...