Re: Is this doable using Postgresql crosstab or some other function? - Mailing list pgsql-general

From Andrew Sullivan
Subject Re: Is this doable using Postgresql crosstab or some other function?
Date
Msg-id 20120410150113.GE37812@crankycanuck.ca
Whole thread Raw
In response to Re: Is this doable using Postgresql crosstab or some other function?  (Merlin Moncure <mmoncure@gmail.com>)
List 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 by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Is this doable using Postgresql crosstab or some other function?
Next
From: Fujii Masao
Date:
Subject: Re: [streaming replication] 9.1.3 streaming replication bug ?