Re: function to return rows as columns? - Mailing list pgsql-general

From Sim Zacks
Subject Re: function to return rows as columns?
Date
Msg-id goe957$dr7$1@news.hub.org
Whole thread Raw
In response to Re: function to return rows as columns?  (Linos <info@linos.es>)
List pgsql-general
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> I think this approach have a problem (almost with my data), i have a
> somewhat large number of different sizes, about 200 or so (although i
> have a presented a limited example i now). Thanks anyway by the
> alternative way to do it Andreas.
>
Actually the crosstab function won't work for you if you need something
more then the basic one or two columns. (IIRC).
Building a dynamic sql string such as Andreas suggested will always give
you exactly what you want.

Sim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmqp+wACgkQjDX6szCBa+r2IgCgpEGq1obqHtWcbbbdchm2cT1e
ShEAniOg/qut+DXQS2mwvSvAMtiE7eOi
=wKIf
-----END PGP SIGNATURE-----

pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: when to use "execute" in plpgsql?
Next
From: Linos
Date:
Subject: Re: strange performance problem (SOLVED)