diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-08-06 20:41:58 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-08-06 20:41:58 +0000 |
commit | 9b29f9f3f86d0f03f61d8b9e449d5107615a3615 (patch) | |
tree | dd0a702ac5ca5c44e29ec2b41e7baf2665da3dba /src/backend/tcop/postgres.c | |
parent | 28d3ee477176e8e6847736c48e9346c5bcde73d1 (diff) | |
download | postgresql-9b29f9f3f86d0f03f61d8b9e449d5107615a3615.tar.gz postgresql-9b29f9f3f86d0f03f61d8b9e449d5107615a3615.zip |
COPY performance improvements. Avoid calling CopyGetData for each input
character, tighten the inner loops of CopyReadLine and CopyReadAttribute,
arrange to parse out all the attributes of a line in just one call instead
of one CopyReadAttribute call per attribute, be smarter about which client
encodings require slow pg_encoding_mblen() loops. Also, clean up the
mishmash of static variables and overly-long parameter lists in favor of
passing around a single CopyState struct containing all the state data.
Original patch by Alon Goldshuv, reworked by Tom Lane.
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions