Postgres 8.3 Function returning a row with different number of colums

From: Gianpiero Venditti <stratio(at)hotmail(dot)it>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Postgres 8.3 Function returning a row with different number of colums
Date: 2011-08-01 18:51:03
Message-ID: DUB106-W641B5B9B7D7D4C72ACE329D5380@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Hello, I need to write a function that sometimes return a row with only a column and sometimes return a row with two columns.

Is it possible to do something like this with record type?

If it's not what's the best alternative to achieve such a result?

Thanks in advance for your help.

Gianpiero Venditti

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Hannes Erven 2011-08-01 19:06:27 Re: Postgres 8.0 upgrade to 9.0
Previous Message Reuven M. Lerner 2011-08-01 18:25:50 Pending trigger events on ALTER TABLE in 8.3