Change COPY ... ON_ERROR ignore to ON_ERROR ignore_row - Mailing list pgsql-hackers

From David G. Johnston
Subject Change COPY ... ON_ERROR ignore to ON_ERROR ignore_row
Date
Msg-id CAKFQuwawy1e6YR4S=j+y7pXqg_Dw1WBVrgvf=BP3d1_aSfe_+Q@mail.gmail.com
Whole thread Raw
Responses Re: Change COPY ... ON_ERROR ignore to ON_ERROR ignore_row
Re: Change COPY ... ON_ERROR ignore to ON_ERROR ignore_row
List pgsql-hackers
Hi,

The option choice of "ignore" in the COPY ON_ERROR clause seems overly generic.  There would seem to be two relevant ways to ignore bad column input data - drop the entire row or just set the column value to null.  I can see us wanting to provide the set to null option and in any case having the option name be explicit that it ignores the row seems like a good idea.

David J.

pgsql-hackers by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Small fix on COPY ON_ERROR document
Next
From: Robert Haas
Date:
Subject: Re: POC: GROUP BY optimization