Skip to content

Commit 6dd1042

Browse files
committed
psql: tab-complete ALTER ... DETACH CONCURRENTLY / FINALIZE
New keywords per 71f4c8c. Discussion: https://postgr.es/m/20210422204035.GA25929@alvherre.pgsql
1 parent 04942bf commit 6dd1042

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bin/psql/tab-complete.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,6 +2209,8 @@ psql_completion(const char *text, int start, int end)
22092209
completion_info_charp = prev3_wd;
22102210
COMPLETE_WITH_QUERY(Query_for_partition_of_table);
22112211
}
2212+
else if (Matches("ALTER", "TABLE", MatchAny, "DETACH", "PARTITION", MatchAny))
2213+
COMPLETE_WITH("CONCURRENTLY", "FINALIZE");
22122214

22132215
/* ALTER TABLESPACE <foo> with RENAME TO, OWNER TO, SET, RESET */
22142216
else if (Matches("ALTER", "TABLESPACE", MatchAny))

0 commit comments

Comments
 (0)