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

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Is this doable using Postgresql crosstab or some other function?
Date: 2012-04-10 15:01:13
Message-ID: 20120410150113.GE37812@crankycanuck.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)crankycanuck(dot)ca

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Fujii Masao 2012-04-10 15:07:41 Re: [streaming replication] 9.1.3 streaming replication bug ?
Previous Message Merlin Moncure 2012-04-10 14:43:52 Re: Is this doable using Postgresql crosstab or some other function?