Skip to content

Commit 2800fbb

Browse files
committed
Add tab completion for EXPLAIN (MEMORY|SERIALIZE)
SERIALIZE has been added in 0628670, and MEMORY in 5de890e. Author: Jian He Discussion: https://postgr.es/m/CACJufxH5UbhbCg-oMt7pHOmvNABF2x48Jfefu24FexSqVgzA3g@mail.gmail.com
1 parent a63224b commit 2800fbb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/bin/psql/tab-complete.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3870,9 +3870,12 @@ psql_completion(const char *text, int start, int end)
38703870
*/
38713871
if (ends_with(prev_wd, '(') || ends_with(prev_wd, ','))
38723872
COMPLETE_WITH("ANALYZE", "VERBOSE", "COSTS", "SETTINGS", "GENERIC_PLAN",
3873-
"BUFFERS", "WAL", "TIMING", "SUMMARY", "FORMAT");
3874-
else if (TailMatches("ANALYZE|VERBOSE|COSTS|SETTINGS|GENERIC_PLAN|BUFFERS|WAL|TIMING|SUMMARY"))
3873+
"BUFFERS", "SERIALIZE", "WAL", "TIMING", "SUMMARY",
3874+
"MEMORY", "FORMAT");
3875+
else if (TailMatches("ANALYZE|VERBOSE|COSTS|SETTINGS|GENERIC_PLAN|BUFFERS|WAL|TIMING|SUMMARY|MEMORY"))
38753876
COMPLETE_WITH("ON", "OFF");
3877+
else if (TailMatches("SERIALIZE"))
3878+
COMPLETE_WITH("TEXT", "NONE", "BINARY");
38763879
else if (TailMatches("FORMAT"))
38773880
COMPLETE_WITH("TEXT", "XML", "JSON", "YAML");
38783881
}

0 commit comments

Comments
 (0)