pgsql: Return the number of rows processed when COPY is executed throug - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Return the number of rows processed when COPY is executed throug
Date
Msg-id E1TJNHo-0006bj-W3@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Return the number of rows processed when COPY is executed through SPI.

You can now get the number of rows processed by a COPY statement in a
PL/pgSQL function with "GET DIAGNOSTICS x = ROW_COUNT".

Pavel Stehule, reviewed by Amit Kapila, with some editing by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/7ae1815961c635fd1a6fe72acb89fdef741a45a8

Modified Files
--------------
doc/src/sgml/spi.sgml      |    5 ++++-
src/backend/executor/spi.c |   24 +++++++++++++++---------
2 files changed, 19 insertions(+), 10 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: pgsql: Split off functions related to timeline history files and XLOG a
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Add --sampling-rate option to pgbench.