pgsql: Print line number correctly in COPY.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Print line number correctly in COPY.
Date: 2013-05-23 11:57:58
Message-ID: E1UfU9e-0000oh-B2@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/fcf91c06e0f836b0db52f2d6f40dd735dd42c7e3

Modified Files
--------------
src/backend/commands/copy.c | 54 +++++++++++++++++++++++++++++++-----------
1 files changed, 40 insertions(+), 14 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2013-05-23 15:36:43 pgsql: Fix typo in comment.
Previous Message Bruce Momjian 2013-05-21 20:43:00 pgsql: 9.3 release notes: improve cached plan mention