projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04942bf
)
psql: tab-complete ALTER ... DETACH CONCURRENTLY / FINALIZE
author
Alvaro Herrera
Thu, 22 Apr 2021 20:37:46 +0000
(16:37 -0400)
committer
Alvaro Herrera
Mon, 26 Apr 2021 20:14:10 +0000
(16:14 -0400)
New keywords per
71f4c8c6f74b
.
Discussion: https://postgr.es/m/
20210422204035
[email protected]
src/bin/psql/tab-complete.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/tab-complete.c
b/src/bin/psql/tab-complete.c
index ed84b3789c63e96f1787021aeb0f0ea654bb8520..7c4933333b3b8462dcecbd1fdd4a2105c5e05809 100644
(file)
--- a/
src/bin/psql/tab-complete.c
+++ b/
src/bin/psql/tab-complete.c
@@
-2209,6
+2209,8
@@
psql_completion(const char *text, int start, int end)
completion_info_charp = prev3_wd;
COMPLETE_WITH_QUERY(Query_for_partition_of_table);
}
+ else if (Matches("ALTER", "TABLE", MatchAny, "DETACH", "PARTITION", MatchAny))
+ COMPLETE_WITH("CONCURRENTLY", "FINALIZE");
/* ALTER TABLESPACE
with RENAME TO, OWNER TO, SET, RESET */
else if (Matches("ALTER", "TABLESPACE", MatchAny))