Content-Length: 262088 | pFad | http://github.com/postgrespro/postgres_cluster/commit/b5a388392dab4c4a7c0fbd6cd0ad7421eabfc5cf

38 psql: Add tab completion for DEALLOCATE · postgrespro/postgres_cluster@b5a3883 · GitHub
Skip to content

Commit b5a3883

Browse files
committed
psql: Add tab completion for DEALLOCATE
EXECUTE already tab-completes the list of prepared statements, but DEALLOCATE was missing. From: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
1 parent 21a3cf4 commit b5a3883

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bin/psql/tab-complete.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2509,6 +2509,10 @@ psql_completion(const char *text, int start, int end)
25092509
else if (Matches5("CREATE", "EVENT", "TRIGGER", MatchAny, "ON"))
25102510
COMPLETE_WITH_LIST3("ddl_command_start", "ddl_command_end", "sql_drop");
25112511

2512+
/* DEALLOCATE */
2513+
else if (Matches1("DEALLOCATE"))
2514+
COMPLETE_WITH_QUERY(Query_for_list_of_prepared_statements);
2515+
25122516
/* DECLARE */
25132517
else if (Matches2("DECLARE", MatchAny))
25142518
COMPLETE_WITH_LIST5("BINARY", "INSENSITIVE", "SCROLL", "NO SCROLL",

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/b5a388392dab4c4a7c0fbd6cd0ad7421eabfc5cf

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy