pgsql: Make saner the tab completion of INSERT and DELETE in psql - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Make saner the tab completion of INSERT and DELETE in psql
Date
Msg-id E1lgzkS-0000v3-7a@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Make saner the tab completion of INSERT and DELETE in psql

When specified directly as DML queries, INSERT was not getting always
completed to "INSERT INTO", same for DELETE with "DELETE FROM".  This
makes the completion behavior more consistent for both commands, saving
a few keystrokes.

Commands on policies, triggers, grant/revoke, etc. require only DELETE
as completion keyword.

Author: Haiying Tang
Reviewed-by: Dilip Kumar, Julien Rouhaud
Discussion: https://postgr.es/m/OS0PR01MB61135AE2B07CCD1AB8C6A0F6FB549@OS0PR01MB6113.jpnprd01.prod.outlook.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1906cc07d90a8e58fd381dba43c1085e9231f236

Modified Files
--------------
src/bin/psql/tab-complete.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)


pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: Rename the logical replication global "wrconn"
Next
From: Bruce Momjian
Date:
Subject: pgsql: doc: update PG 14 release notes based on current feedback