OSDN Git Service

Rearrange coding in COPY so that expansible string buffer for data being
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 16 Jan 2000 21:37:50 +0000 (21:37 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 16 Jan 2000 21:37:50 +0000 (21:37 +0000)
commite0bd60171a26e6a324989a5b649dd08e8e77ed7e
treeb40b3c1d9d8f36ec8a40df7ae285737e96e86f2a
parentd00391e7ac3473efee506fd5abb24de80c544caa
Rearrange coding in COPY so that expansible string buffer for data being
read is reused for successive attributes, instead of being deleted and
recreated from scratch for each value read in.  This reduces palloc/pfree
overhead a lot.  COPY IN still seems to be noticeably slower than it was
in 6.5 --- we need to figure out why.  This change takes care of the only
major performance loss I can see in copy.c itself, so the performance
problem is at a lower level somewhere.
src/backend/commands/copy.c