git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 774bcff) | patch
Refactor CopyReadAttributes{CSV,Text}() to use a callback in COPY FROM
Mon, 5 Feb 2024 00:46:02 +0000 (09:46 +0900)
Mon, 5 Feb 2024 00:46:02 +0000 (09:46 +0900)
commit 95fb5b49024aa51310f91aba669aaf0bb3227932
Refactor CopyReadAttributes{CSV,Text}() to use a callback in COPY FROM

CopyReadAttributes{CSV,Text}() are used to parse lines for text and CSV
format. This reduces the number of "if" branches that need to be
checked when parsing fields in CSV and text mode when dealing with a
COPY FROM, something that can become more noticeable with more
attributes and more lines to process.

Extracted from a larger patch by the same author.

Author: Sutou Kouhei
Discussion: https://postgr.es/m/20231204.153548.2126325458835528809.kou@clear-code.com
src/backend/commands/copyfrom.c diff | blob | blame | history
src/backend/commands/copyfromparse.c diff | blob | blame | history
src/include/commands/copyfrom_internal.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /