IMPROVED VERSION APPLIED:
Bruce Momjian <bruce@momjian.us>
IMPROVED VERSION APPLIED:
The attached patch completes the following TODO item:
* Generate failure on short COPY lines rather than pad NULLs
I also restructed a lot of the existing COPY code, did some code
review on the column list patch sent in by Brent Verner a little
while ago, and added some regression tests. I also added an
explicit check (and resultant error) for extra data before
the end-of-line.
Neil Conway
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/copy.sgml | modified | +15 −10 |
| src/backend/commands/copy.c | modified | +207 −192 |
| src/test/regress/expected/copy2.out | modified | +52 −4 |
| src/test/regress/sql/copy2.sql | modified | +45 −4 |