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(at)crankycanuck(dot)ca