Variable return type...

From: "Cristian Prieto" <cristian(at)clickdiario(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Variable return type...
Date: 2005-10-27 00:14:23
Message-ID: 00fd01c5da8b$6316b8f0$6500a8c0@gt.ClickDiario.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi, I was working in a set of SPs inside PL/pgSQL and I was wonder if I
could return a set of variable types from a function, for example, in some
time the same function could return a set of tuples with an integer and a
string, in other times It may return a set of tuples with an integer, a
string and another string. a so on.

I know I can use anyelement but then I would need to specify an anyelement
input type (but in my case the input element would the the same all the
time);

Any idea in how I could do this?

Thanks a lot!

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2005-10-27 01:00:06 Re: Error Message
Previous Message Douglas McNaught 2005-10-26 23:51:27 Re: Error Message