Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> You seem to have worse problems than that, because as given the
> insc_registra_grupo function never returns non-NULL
Actually the function (and the database) is quite complex and was
trimed just to test the problem.
> I suspect pilot error --- perhaps looking at the wrong schema or
> some such?
I don't think so, search_path has its default value and also I'm able
to reproduce it in a fresh cluster (tried 3 different machines to
discard hardware problems).
Regards,
Manuel.