在psql客户端中修改函数
\ef 创建一个新的函数。
\df 显示已经创建的函数。
\df+ somefunc 显示这个函数的详细定义
\ef somefunc 编辑这个函数, 编辑保存退出之后,要执行 \g ,刚才的修改才会生效。
\g 使刚才的修改生效。
https://stackoverflow.com/questions/37368918/how-do-i-edit-a-function-in-psql
------------------------------------------------------------------------------------------------
After you edit the function with \ef, you need to enter \g or ; to execute the statement that updates the function.
So it would be
\ef function_name() [edit away] \g

浙公网安备 33010602011771号