mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-10 08:17:00 +02:00
This message has the line number where the erroneous data was found on the server, and given the pre-processing we already done at that point, it's easy to convert that number into an index into the current batch, an array. To do do, we need Postmodern to expose the CONTEXT error message and we need to parse it. The following pull request cares about the Postmodern side of things: https://github.com/marijnh/Postmodern/pull/46 The parsing is done as simply as possible, only assuming that the error message is using comma separators and having the line number in second position. The parsing as done here should still work with localized message strings. CONTEXT: COPY errors, line 3, column b: "2006-13-11" This change should significantly reduce the cost of error processing. |
||
---|---|---|
.. | ||
data | ||
parse | ||
sqlite | ||
allcols.load | ||
archive.load | ||
bossa-all.load | ||
bossa.load | ||
bossa.sql | ||
census-places.load | ||
csv-before-after.load | ||
csv-empty-as-null.load | ||
csv.load | ||
dbf-zip.load | ||
dbf.load | ||
errors.load | ||
fixed.load | ||
Makefile | ||
nofile.load | ||
partial.load | ||
README.md | ||
reformat.load | ||
sakila.load | ||
serial.load | ||
simple.load | ||
sqlite.load | ||
udc.load | ||
xzero.load |
pgloader tests
In the parser
directory are tests for the parser only, in the current
directory are tests that can be run to import data.