From c5e11de2f378b8e52893bfcd3f6ffd583fffc160 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 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))