From 1d15d0db50a5f39ab69c1fe60f2d5dcc7e2ddb9c Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Thu, 3 Nov 2016 11:42:13 -0400 Subject: psql: Tab-complete LOCK [TABLE] ... IN {ACCESS|ROW|SHARE}. Suggest the lock modes that begin with the word in question. Thomas Munro, reviewed by Marllius Ribeiro. Comments tweaked by me. --- src/bin/psql/tab-complete.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 50a45eb9289..dd8bbe1467d 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -2662,6 +2662,17 @@ psql_completion(const char *text, int start, int end) "SHARE ROW EXCLUSIVE MODE", "EXCLUSIVE MODE", "ACCESS EXCLUSIVE MODE"); + /* Complete LOCK [TABLE]