Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux