1
0
mirror of https://github.com/postgres/postgres.git synced 2026-10-23 13:29:09 +03:00

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
This commit is contained in:
Peter Eisentraut
2026-08-05 08:35:10 +02:00
parent 034ff7f94a
commit 0a51a06cdb

View File

@@ -4482,6 +4482,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))