]> granicus.if.org Git - postgresql/commit
Return the number of rows processed when COPY is executed through SPI.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 3 Oct 2012 11:32:01 +0000 (14:32 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 3 Oct 2012 11:38:22 +0000 (14:38 +0300)
commit7ae1815961c635fd1a6fe72acb89fdef741a45a8
treee72e73802bc89839172130e5f9b741e3d585542f
parentbc1229c83238a0d71a3923cb48e53ea7ea37654c
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.
doc/src/sgml/spi.sgml
src/backend/executor/spi.c