Print line number correctly in COPY.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: e2ef289363f52b9dd5950c88a65803b585d86ad8
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2013-05-23T11:49:59Z
Releases: 9.3.0
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.

Files

PathChange+/−
src/backend/commands/copy.c modified +40 −14