ALFONSO REYES escribió:
>
>
> Marcos, muchas gracias por tú ayuda, pero a lo que me refiero es como debería
> jecutarla desde el query builder, por ejemplo a las
> funciones que retirnan un refcursor se las ejecuta asi:
> Begin;
> select funcion('resp_ref_cursor');
> fecth all in "resp_ref_cursor";
> commit;
>
> En cambio cuando es un afunción de tipo record como la ejecuto desde el query
> builder..
select * from function( ... )
Si es "setof record" entonces tienes que especificar el tipo del record:
select * from function( ... ) as f(a int, b text, c text, ...)
--
Alvaro Herrera http://www.PlanetPostgreSQL.org/
"I'm impressed how quickly you are fixing this obscure issue. I came from
MS SQL and it would be hard for me to put into words how much of a better job
you all are doing on [PostgreSQL]."
Steve Midgley, http://archives.postgresql.org/pgsql-sql/2008-08/msg00000.php
--
TIP 3: Si encontraste la respuesta a tu problema, publícala, otros te lo
agradecerán