On Tue, Mar 8, 2011 at 12:49, Matyas Novak <logik(at)centrum(dot)cz> wrote:
> Bug reference: 5920
>
> create or replace function f2 () returns void volatile language sql as
> $$
> select f1(tmp) from (values ('aa'), ('bb')) _tmp(tmp);
> $$;
> select f2();
>
> As a result, only one row appears in table a, although two should be
> there...
It should be not a bug.
You probably need to define f2 as "returns SETOF void" function.
--
Itagaki Takahiro