无法编辑存储过程

Can't edit stored procedure

我正在使用 \ef。当我编辑函数然后保存并退出 (vi) 时,没有任何反应。

请帮忙。我已经在这两天了。

直接从 docs 交付给您:

\ef [ function_description [ line_number ] ]

This command fetches and edits the definition of the named function, in the form of a CREATE OR REPLACE FUNCTION command. Editing is done in the same way as for \edit.

After the editor exits, the updated command waits in the query buffer; type semicolon or \g to send it, or \r to cancel.

您需要输入 \g 以保存更改(发出 CREATE OR REPLACE FUNCTION 命令)。