postgresql - Create a new function from an existing function in Postgres? -


i have created function function_1() in postgres.
want create similar function function_2() , copy content of function_1().

any postgres command line can that?

so far used copy&paste method in command line create function_2() (need change function name "function_2" after paste)

if using gui pgadmin, can select function in object browser , open reverse engineered sql script in sql editor window.

there dedicated item in options automate it:

options - query tool - query editor - copy sql main window query tool


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -