Jan Wieck <JanWieck@Yahoo.com> writes:
> If that's the case, it must be a general problem with SPI
> that'll apply to any procedural language as well as user
> defined C function using SPI.
Not necessarily. It looks to me like someone is forgetting to do a
CommandCounterIncrement() between plpgsql statements. Is this something
that plpgsql should do, or should SPI do it? Not clear.
regards, tom lane