mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
Add tab-completion for newly added SUBSCRIPTION options.
Commits c3afe8cf5a and 482675987b added new subscription options "password_required" and "run_as_owner". This patch adds tab-completion for these newly added options. Author: Peter Smith Discussion: https://postgr.es/m/CAHut+Pu=pnJf=SS1583pknSQ3CbOqLCkWcJCQYt6zxTagHEdmw@mail.gmail.com
This commit is contained in:
parent
8fcb32db98
commit
96c498d2f8
@ -1925,7 +1925,8 @@ psql_completion(const char *text, int start, int end)
|
||||
COMPLETE_WITH("(", "PUBLICATION");
|
||||
/* ALTER SUBSCRIPTION <name> SET ( */
|
||||
else if (HeadMatches("ALTER", "SUBSCRIPTION", MatchAny) && TailMatches("SET", "("))
|
||||
COMPLETE_WITH("binary", "disable_on_error", "origin", "slot_name",
|
||||
COMPLETE_WITH("binary", "disable_on_error", "origin",
|
||||
"password_required", "run_as_owner", "slot_name",
|
||||
"streaming", "synchronous_commit");
|
||||
/* ALTER SUBSCRIPTION <name> SKIP ( */
|
||||
else if (HeadMatches("ALTER", "SUBSCRIPTION", MatchAny) && TailMatches("SKIP", "("))
|
||||
@ -3268,7 +3269,8 @@ psql_completion(const char *text, int start, int end)
|
||||
/* Complete "CREATE SUBSCRIPTION <name> ... WITH ( <opt>" */
|
||||
else if (HeadMatches("CREATE", "SUBSCRIPTION") && TailMatches("WITH", "("))
|
||||
COMPLETE_WITH("binary", "connect", "copy_data", "create_slot",
|
||||
"disable_on_error", "enabled", "origin", "slot_name",
|
||||
"disable_on_error", "enabled", "origin",
|
||||
"password_required", "run_as_owner", "slot_name",
|
||||
"streaming", "synchronous_commit", "two_phase");
|
||||
|
||||
/* CREATE TRIGGER --- is allowed inside CREATE SCHEMA, so use TailMatches */
|
||||
|
Loading…
x
Reference in New Issue
Block a user