andrew wrote:
> But the function foo() would produce different values for the two
> queries, so the result will be different.
> A simple example is foo() computes the sum of all the integer fields
> of the input record.
OK, I see now where you're getting at. You want to combine the record
type of A and B into one. Then the proposed solution is right.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/