Viacheslav N Tararin <taras(at)deka(dot)kp(dot)km(dot)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