Re: Is this doable using Postgresql crosstab or some other function?

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: Is this doable using Postgresql crosstab or some other function?
Дата
Msg-id 20120410150113.GE37812@crankycanuck.ca
обсуждение исходный текст
Ответ на Re: Is this doable using Postgresql crosstab or some other function?  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-general
On Tue, Apr 10, 2012 at 09:43:52AM -0500, Merlin Moncure wrote:

> Mostly no.  A hardwired restriction is that a view has a rigidly
> defined list of columns with defined types.  You can skirt that
> restriction a couple of ways -- for example your view could be a
> single column text (or xml, or hstore) with the columns you want
> encoded into it.

I'm wondering whether a set-returning (or these days, I guess,
table-returning) function or a polymorphic function might make sense
here.  I haven't read the use case carefully (and I probably won't),
but it seems like it might not be impossible that way.

Best,

A

--
Andrew Sullivan
ajs@crankycanuck.ca

В списке pgsql-general по дате отправления:

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: Is this doable using Postgresql crosstab or some other function?
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: [streaming replication] 9.1.3 streaming replication bug ?