Postgres 8.3 Function returning a row with different number of colums

Поиск
Список
Период
Сортировка
От Gianpiero Venditti
Тема Postgres 8.3 Function returning a row with different number of colums
Дата
Msg-id DUB106-W641B5B9B7D7D4C72ACE329D5380@phx.gbl
обсуждение исходный текст
Ответ на Re: Postgres 8.0 upgrade to 9.0  (John Cheng <johnlicheng@gmail.com>)
Ответы Re: Postgres 8.3 Function returning a row with different number of colums
Re: Postgres 8.3 Function returning a row with different number of colums
Список 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 по дате отправления:

Предыдущее
От: "Reuven M. Lerner"
Дата:
Сообщение: Pending trigger events on ALTER TABLE in 8.3
Следующее
От: David Johnston
Дата:
Сообщение: Re: Postgres 8.3 Function returning a row with different number of colums