Re: Function returning any (tuple) type

From: Richard Huxton <dev(at)archonet(dot)com>
To: Hannes Dorbath <light(at)theendofthetunnel(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Function returning any (tuple) type
Date: 2005-07-15 09:11:13
Message-ID: 42D77DB1.1030703@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hannes Dorbath wrote:
> On 15.07.2005 08:51, Ezequiel Tolnay wrote:
>
>>
>> The main problem I see is that the funcitions in PostgreSQL seem to be
>> always bound to a particular result datatype. Is there a way to
>> circumvent this?
>
>
> I tried to find a solution for this as well some time ago. I don't
> believe there is a practical way. It's only a guess, maybe this "strong
> typing" helps the planer / optimizer in some way..

If that's not what you want, you can always return text (structure it
how you like) or a cursor-reference.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrus 2005-07-15 10:46:15 How to create unique constraint on NULL columns
Previous Message Hannes Dorbath 2005-07-15 08:52:49 Re: Function returning any (tuple) type