Skip to content

Commit 0baf82f

Browse files
committed
Improve tab-completion for DEALLOCATE.
Author: Naoki Nakamichi Reviewed-by: Fujii Masao Discussion: https://postgr.es/m/ec1a45b06edfce13706f2c765778d8c2@oss.nttdata.com
1 parent cc99baa commit 0baf82f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/psql/tab-complete.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -2911,7 +2911,8 @@ psql_completion(const char *text, int start, int end)
29112911

29122912
/* DEALLOCATE */
29132913
else if (Matches("DEALLOCATE"))
2914-
COMPLETE_WITH_QUERY(Query_for_list_of_prepared_statements);
2914+
COMPLETE_WITH_QUERY(Query_for_list_of_prepared_statements
2915+
" UNION SELECT 'ALL'");
29152916

29162917
/* DECLARE */
29172918
else if (Matches("DECLARE", MatchAny))

0 commit comments

Comments
 (0)