forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9b29f9f
committed
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 insteadof one CopyReadAttribute call per attribute, be smarter about which clientencodings require slow pg_encoding_mblen() loops. Also, clean up themishmash of static variables and overly-long parameter lists in favor ofpassing around a single CopyState struct containing all the state data.Original patch by Alon Goldshuv, reworked by Tom Lane.1 parent28d3ee4 commit9b29f9f
1 file changed
+1507
-1043
lines changed0 commit comments
Comments
(0)