Commit 6dd1042e authored by Alvaro Herrera's avatar Alvaro Herrera

psql: tab-complete ALTER ... DETACH CONCURRENTLY / FINALIZE

New keywords per 71f4c8c6.

Discussion: https://postgr.es/m/20210422204035.GA25929@alvherre.pgsql
parent 04942bff
...@@ -2209,6 +2209,8 @@ psql_completion(const char *text, int start, int end) ...@@ -2209,6 +2209,8 @@ psql_completion(const char *text, int start, int end)
completion_info_charp = prev3_wd; completion_info_charp = prev3_wd;
COMPLETE_WITH_QUERY(Query_for_partition_of_table); COMPLETE_WITH_QUERY(Query_for_partition_of_table);
} }
else if (Matches("ALTER", "TABLE", MatchAny, "DETACH", "PARTITION", MatchAny))
COMPLETE_WITH("CONCURRENTLY", "FINALIZE");
/* ALTER TABLESPACE <foo> with RENAME TO, OWNER TO, SET, RESET */ /* ALTER TABLESPACE <foo> with RENAME TO, OWNER TO, SET, RESET */
else if (Matches("ALTER", "TABLESPACE", MatchAny)) else if (Matches("ALTER", "TABLESPACE", MatchAny))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment