pgloader/src
Dimitri Fontaine ef358c0b7d Take benefits of PostgreSQL COPY error CONTEXT.
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.
2013-12-25 21:43:22 +01:00
..
pgsql Take benefits of PostgreSQL COPY error CONTEXT. 2013-12-25 21:43:22 +01:00
sources Small code cleanup. 2013-12-25 16:20:37 +01:00
archive.lisp Remove some dead code (was intended for later use). 2013-12-20 17:07:43 +01:00
logs.lisp Refactor the whole logging infrastructure not to depend on threads sharing streams. 2013-12-24 19:08:55 +01:00
main.lisp Fix the main command line "driver" to use the new with-monitor API. 2013-12-24 19:54:22 +01:00
monitor.lisp Fix monitor logging with no argument is given to the format string. 2013-12-25 21:25:20 +01:00
package.lisp Refactor the whole logging infrastructure not to depend on threads sharing streams. 2013-12-24 19:08:55 +01:00
params.lisp Set the default batch size (in rows) back to 25000. 2013-12-23 13:17:04 +01:00
parse-ini.lisp Move sources into their own subdirectory, assorted cleaning. 2013-10-20 19:09:09 +02:00
parser.lisp Fix missing *pg-dbname* in CSV processing, resulting in broken logging. 2013-12-25 16:50:14 +01:00
queue.lisp Move sources into their own subdirectory, assorted cleaning. 2013-10-20 19:09:09 +02:00
transforms.lisp Fix the byte-vector-to-bytea transform function (handle nil, better type declaration). 2013-11-22 17:18:09 +01:00
utils.lisp Fix missing *pg-dbname* in CSV processing, resulting in broken logging. 2013-12-25 16:50:14 +01:00