Confusion over Copy.c/Count rows from file patch

From: mike g <mike(at)thegodshalls(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Confusion over Copy.c/Count rows from file patch
Date: 2004-03-16 04:42:46
Message-ID: 1079412166.8420.52.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I am trying to revise my patch for counting the number of rows inserted
when using a COPY statement.

I set it up a printf to see the results in the log file.

When I execute a COPY the first time it reports 0 rows inserted(but
actually inserts all rows). If I execute again it reports the number of
rows + 1. Execute a third time and the number of rows are reported +
1(same result as 2nd run). All three tests were done against the same
file.

If there is a simple explanation to why ProcessUtility is not called the
first time COPY is executed and it is from then on it could help me a
lot.

Attachment Content-Type Size
copy2.patch text/x-patch 2.3 KB
utility.patch text/x-patch 736 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-03-16 04:47:52 Re: Reducing expression evaluation overhead
Previous Message Bruce Momjian 2004-03-16 02:42:58 Re: listening addresses