Re: COPY improvements - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: COPY improvements
Date
Msg-id 200207301654.g6UGsjj17085@candle.pha.pa.us
Whole thread Raw
In response to Re: COPY improvements  (nconway@klamath.dyndns.org (Neil Conway))
List pgsql-patches
Neil Conway wrote:
> On Thu, Jul 25, 2002 at 04:25:35PM -0400, Neil Conway wrote:
> > The attached patch completes the following TODO item:
> >
> >     * Generate failure on short COPY lines rather than pad NULLs
>
> I've attached an improved patch. This patch fixes a regression test
> failure in the previous patch, updates the documentation for the
> new behavior of COPY, and makes the handling of COPY TO/FROM
> WITH OIDS into a table without OIDs more consistent (plus regression
> tests for the same).
>
> I'm not sure if the "bail out if we encounter extra data" check
> is too strict -- any comments?

If the COPY row has too little data or too much data, you have to abort
the COPY.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: COPY improvements
Next
From: Bruce Momjian
Date:
Subject: Re: remove recipe code