Sergei Kornilov <sk@zsrv.org> writes:
> Is psql command \r actually works? I expected \r and then \e command should start editor without text of last query.
\r clears the current query buffer. \e without an argument is
defined to edit the current query buffer, or if that is empty,
the last query. I don't see anything particularly wrong here.
> I see this behavior change on >= 10 versions
Possibly fixed as a side effect of e984ef586.
regards, tom lane