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.
copy.c (r1.247 -> r1.248)
pgsql-committers by date
|Next:||From: User Andrewd||Date: 2005-08-06 23:19:39|
|Subject: pgbuildfarm - client-code: split --from-source into two options - one |
|Previous:||From: Tom Lane||Date: 2005-08-05 15:01:48|
|Subject: pgsql: Actually, this macro had worse problems than a bogus name ...|