"raajarshi ." <raajarshi(at)sify(dot)com> writes:
> to add a little clarification to the problem description, the transformed
> query (one which is actually run) returns the same result as the submitted
> query so actually the caller knows the number and type of fields to expect
> but they can be different for different calls as any query can be specified
> as the argument of the function.So would I have to create a placeholder type
> for each run of the query or what ??
You might want to look at the way contrib/dblink does this.
regards, tom lane