Viacheslav N Tararin <taras@deka.kp.km.ua> writes:
> I make some modification for PL/PgSQL.
> Was added global static variable rowcount, which mirror SPI_porecessed
> variable.
In 7.1 plpgsql, "GET DIAGNOSTICS foo = ROW_COUNT" handles this.
regards, tom lane