"Balazs Klein" <Balazs.Klein@gmail.com> writes:
> On 8.4.1 on windows XP running the function gives an error message
> (Undefined column: 7 ERROR: record "rec" has no field "instreq_id") wich is
> strange because the underlying query does return that column.
There's really no way to investigate that without a *complete* example.
regards, tom lane