Elein, Robert,
I think Robert can do this in 7.3.3, and in PL/pgSQL. But I'm not going any
further on it until Robert clarifies his examples, because I'm not sure what
he's talking about.
In your example, Robert, you use "f1" to indicate both the column f1 and the
value of the column f1. This makes it impossible for me to understand which
of the two you want.
Try again?
--
Josh Berkus
Aglio Database Solutions
San Francisco