Return the number of rows processed when COPY is executed through SPI.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 7ae1815961c635fd1a6fe72acb89fdef741a45a8
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2012-10-03T11:38:22Z
Releases: 9.3.0
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.

Files

PathChange+/−
doc/src/sgml/spi.sgml modified +4 −1
src/backend/executor/spi.c modified +15 −9