IMPROVED VERSION APPLIED:

Bruce Momjian <bruce@momjian.us>

Commit: 874148fe34d404d8dc77d8ed7482f16f5aaad5ba
Author: Bruce Momjian <bruce@momjian.us>
Date: 2002-07-30T16:55:06Z
Releases: 7.3.1
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

PathChange+/−
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