postgresql - Tablefunc in Redshift to pivot table not supported? -
i trying pivot table in redshift, using postgresql. answer instructive: https://stackoverflow.com/a/11751905/3063339 however, when run the
create extension tablefunc;
command error:
syntax error @ or near "extension"
does redshift not support syntax above, or tablefunc
, or neither? if so, there redshift functions act workaround? aware table can pivoted basic postgresql commands sum(case ...)
etc. these not scale large tables though. many thanks.
create extension
introduced postgres 9.1.
amazon redshift based on postgresql 8.0.2. selected features later versions implemented.
i not seem redshift supports extension tablefunc at all. you'll have use case
statements emulate functionality. here related post on aws (that found in comment).
Comments
Post a Comment