Export “Create Aggregate” functions from PostgreSQL

Deadly 提交于 2019-12-11 02:58:02

问题


I have created some user defined aggregate functions. However, I cannot see a way to export them in pgAdmin. Or any other way.

I can see the underlying functions, but not the CREATE AGGREGATE definitions.

SquirrelSQL doesn't show anything useful either!


回答1:


Most probably you need to enable the display of aggregates in your Options:
File -> Options -> Browser -> Display

After refreshing the view you get a separate node Aggregates in the object browser:

The reverse engineered CREATE script for the selected aggregate is displayed to the right in the SQL pane.



来源:https://stackoverflow.com/questions/15112971/export-create-aggregate-functions-from-postgresql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!