pgsql-bugs@postgresql.org writes:
> Here are the facts:
Postgres version? Tables needed by the function (declaration and
sample data)?
I tried to reproduce this problem by guessing at a table declaration
and some data, but (unsurprisingly) did not see any problem. Please
submit a more complete report.
regards, tom lane