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
Post a Comment