]> granicus.if.org Git - postgresql/commit
Print line number correctly in COPY.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 23 May 2013 11:49:59 +0000 (07:49 -0400)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 23 May 2013 11:53:01 +0000 (07:53 -0400)
commitfcf91c06e0f836b0db52f2d6f40dd735dd42c7e3
tree0d839503d5d5d0b80c04a0c639f5e0d5742df563
parente7e005ed90f7e417696a9388717f91b55fd195bb
Print line number correctly in COPY.

When COPY uses the multi-insert method to insert a batch of tuples into the
heap at a time, incorrect line number was printed if something went wrong in
inserting the index tuples (primary key failure, for exampl), or processing
after row triggers.

Fixes bug #8173 reported by Lloyd Albin. Backpatch to 9.2, where the multi-
insert code was added.
src/backend/commands/copy.c