1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-07 00:36:50 +03:00

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.
This commit is contained in:
Tom Lane
2005-08-06 20:41:58 +00:00
parent 28d3ee4771
commit 9b29f9f3f8

File diff suppressed because it is too large Load Diff