BUG #17020: meta command psql \reset does not clear the query buffer

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: francois(dot)grandvarlet(at)wanadoo(dot)fr
Subject: BUG #17020: meta command psql \reset does not clear the query buffer
Date: 2021-05-18 22:16:16
Message-ID: 17020-f5e23166506e7932@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 17020
Logged by: François Grandvarlet
Email address: francois(dot)grandvarlet(at)wanadoo(dot)fr
PostgreSQL version: 13.3
Operating system: Centos 7
Description:

Connected via psql
issuing a command like : SELECT * FROM generate_series (1, 1000);
meta command \p shows the query buffer
meta command \reset tells "Query buffer reset (cleared)."
but meta command \p still shows the query buffer and meta command \g execute
the query
Is this the normal behavior ?
It seems to me that the query buffer should be empty after issuing \reset

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Geoghegan 2021-05-18 22:25:33 Re: Less selective index chosen unexpectedly
Previous Message Alvaro Herrera 2021-05-18 21:50:48 Re: Less selective index chosen unexpectedly