On 20/07/2017 03:34, Tom Lane wrote: > Julien Rouhaud <julien.rouh...@dalibo.com> writes: >> Unless I miss something, \r isn't working anymore, > > Works for me. Please describe exactly what misbehavior you're seeing. > What libreadline or libedit version are you using? >
I have libreadline 7.0_p3. Here's a simple test case, last \p still show the query buffer: psql -X postgres postgres=# select version(); version -------------------------------------------------------------------------------------------------------------------- PostgreSQL 10beta2@decb08ebdf on x86_64-pc-linux-gnu, compiled by gcc (Gentoo 4.9.3 p1.5, pie-0.6.4) 4.9.3, 64-bit (1 row) postgres=# \p select version(); postgres=# \r Query buffer reset (cleared). postgres=# \p select version(); On a 9.6: postgres=# select version(); version ------------------------------------------------------------------------------------------------------------------ PostgreSQL 9.6.3@3c017a545f on x86_64-pc-linux-gnu, compiled by gcc (Gentoo 4.9.3 p1.5, pie-0.6.4) 4.9.3, 64-bit (1 row) postgres=# \p select version(); postgres=# \r Query buffer reset (cleared). postgres=# \p Query buffer is empty. -- Julien Rouhaud -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers