Re: how made procedure returned different types of value? - Mailing list pgsql-admin

From Viktor Bojović
Subject Re: how made procedure returned different types of value?
Date
Msg-id AANLkTi=a9FLkgVuDw0EG6pHO=oZzrL=JFOScmeQcAeby@mail.gmail.com
Whole thread Raw
List pgsql-admin

On Wed, Dec 22, 2010 at 1:52 AM, <kubus__puchatek@tlen.pl> wrote:

In postgres im beginer .

How write procedure returned different types of value?

i need function to select different data types from table columns and returned.

i try overload name of function but its bad idea.

it is possible?

 

anybody?

 


Maybe you can use custom types and store different results into that custom type container which will be returned by your function.

--
---------------------------------------
Viktor Bojović
---------------------------------------
Wherever I go, Murphy goes with me

pgsql-admin by date:

Previous
From: Iñigo Martinez Lasala
Date:
Subject: Re: Problems Upgrading from 8.2 to 9.0
Next
From: Tom Lane
Date:
Subject: Re: Optimizing Update with WHERE x IN (id1,id2,...)