我正在使用DBI包从R中访问Amazon Redshift DB(PostgresSQL)。我尝试定义这个开源函数Colpivot来转置表:
<local:EnumComboBox x:Name="EnumComboBox">
<local:EnumComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Converter={StaticResource ToStringConverter}}" />
</DataTemplate>
</local:EnumComboBox.ItemTemplate>
</local:EnumComboBox>
我的错误:
postgresqlExecStatement(conn,statement,...)出错: RS-DBI驱动程序:(无法检索结果:错误:语言plpgsql不支持创建函数。
如何定义此功能并通过R在我的红移表上使用它?谢谢!
答案 0 :(得分:1)
如果您尝试在Redshift上创建存储过程,则Redshift不支持用户定义的函数,存储过程。
请参阅http://docs.aws.amazon.com/redshift/latest/dg/c_unsupported-postgresql-features.html