|| at Feb 18, 2009 at 7:51 pm
On Wed, 2009-02-18 at 11:56 -0700, Bill Todd wrote:
If the COPY command fails does it identify the offending row?
Yes, it tries to identify the failing row in the error message.
After reading the manual and the wiki I assume that there is no way to
tell copy to start with the Nth record in the input file. Is that
correct? It seems like such an obvious feature I was surprised not to
find it. Thanks.
There are a lot of features that people could find useful: various
formats and various manipulations of the data before it's processed. If
all of those features were implemented, COPY would start to look more
In general, it's best to preprocess the data yourself and pipe the
result to a "COPY ... FROM STDIN" command. That way you can actually use
perl if you want to.