Return the number of rows processed when COPY is executed through SPI.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/spi.sgml | modified | +4 −1 |
| src/backend/executor/spi.c | modified | +15 −9 |