postgres.git / summary / log / commit / refs
commit c5e11de2f378b8e52893bfcd3f6ffd583fffc160
Author: Peter Eisentraut <peter@eisentraut.org>
Date: Wed Aug 05 06:35:10 2026 +0000
More tab-completion for DROP PROPERTY GRAPH
This adds completion for CASCADE and RESTRICT, similar to what
completion of other DROP commands provides.
Author: Peter Smith <peter.b.smith@fujitsu.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAHut+PuHsLupVWZ9SUeKm=jKR34wYP6qAZPoOHFhU3uDbx34wQ@mail.gmail.com
src/bin/psql/tab-complete.in.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/bin/psql/tab-complete.in.c b/src/bin/psql/tab-complete.in.c
index 745eb3d004c..807d1d3b527 100644
--- a/src/bin/psql/tab-complete.in.c
+++ b/src/bin/psql/tab-complete.in.c
@@ -4496,6 +4496,8 @@ match_previous_words(int pattern_id,
COMPLETE_WITH("GRAPH");
else if (Matches("DROP", "PROPERTY", "GRAPH"))
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_propgraphs);
+ else if (Matches("DROP", "PROPERTY", "GRAPH", MatchAny))
+ COMPLETE_WITH("CASCADE", "RESTRICT");
/* DROP RULE */
else if (Matches("DROP", "RULE", MatchAny))
[parent: 4642ddc2a586]