From 0a51a06cdb0b23c460a78fa1d60201ebad1905e0 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 5 Aug 2026 08:35:10 +0200 Subject: [PATCH] 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 Reviewed-by: Chao Li 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 17dcabe755f..190fff7ea0e 100644 --- a/src/bin/psql/tab-complete.in.c +++ b/src/bin/psql/tab-complete.in.c @@ -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))