[ADMIN] functions vs stored procedures

2005-07-13 Thread Ezequiel Tolnay
Hi guys, I've been using PostgreSQL for about one year, and implemented two systems using it, and I'm pretty happy with PG. But coming from MSSQL, I just can't get used to the annoyance of having to create a type for every single function that returns a rowset. It is frankly cumbersome.

Re: [ADMIN] functions vs stored procedures

2005-07-14 Thread Tom Lane
Ezequiel Tolnay <[EMAIL PROTECTED]> writes: > I just can't get used to the annoyance of having to create a type for > every single function that returns a rowset. It is frankly cumbersome. Yup. See coming attractions at, eg, http://developer.postgresql.org/docs/postgres/xfunc-sql.html#XFUNC-OUTP

Re: [ADMIN] functions vs stored procedures

2005-07-14 Thread Ezequiel Tolnay
Thanks for the tip, but unfortunately id didn't address any of my concerns. I alreay use the version 8, and I'm aware of the possibility of using arrays for the results, which allows for some flexibility. But unfortunately arrays are not records, and I'm limited to values of the same types, and

Re: [ADMIN] functions vs stored procedures

2005-07-15 Thread Alvaro Herrera
On Fri, Jul 15, 2005 at 10:57:04AM +1000, Ezequiel Tolnay wrote: > Thanks for the tip, but unfortunately id didn't address any of my > concerns. I alreay use the version 8, and I'm aware of the possibility > of using arrays for the results, which allows for some flexibility. But > unfortunately

Re: [ADMIN] functions vs stored procedures

2005-07-24 Thread Ezequiel Tolnay
Alvaro Herrera wrote: Wow, incredible. You misread the whole documentation. I certainly did, I read it with more care this time. It is a great solution when we're required to return a single record with a custom type, which are few but there certainly are. I wonder if you know any tricks t