"Gerard Mason" <gerardmason(at)hotmail(dot)com> writes:
> That seems to be what the documentation is suggesting the return type should
> be (the examples are very incomplete!), but it doesn't work (7.1.3,
^^^^^
That seems to be your problem ;-)
> and I can't upgrade without buying a new machine, which I don't want
> to do just yet).
Surely you can upgrade. If the problem is lack of RPMs for whatever OS
you are running, you could just compile Postgres from source.
regards, tom lane