Postgres 8.3 Function returning a row with different number of colums - Mailing list pgsql-general

From Gianpiero Venditti
Subject Postgres 8.3 Function returning a row with different number of colums
Date
Msg-id DUB106-W641B5B9B7D7D4C72ACE329D5380@phx.gbl
Whole thread Raw
In response to Re: Postgres 8.0 upgrade to 9.0  (John Cheng <johnlicheng@gmail.com>)
Responses Re: Postgres 8.3 Function returning a row with different number of colums  (David Johnston <polobo@yahoo.com>)
Re: Postgres 8.3 Function returning a row with different number of colums  (Merlin Moncure <mmoncure@gmail.com>)
List 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

pgsql-general by date:

Previous
From: "Reuven M. Lerner"
Date:
Subject: Pending trigger events on ALTER TABLE in 8.3
Next
From: David Johnston
Date:
Subject: Re: Postgres 8.3 Function returning a row with different number of colums