mirror of
https://github.com/postgres/postgres.git
synced 2025-05-31 03:21:24 +03:00
Re-order disable_on_error in tab-complete.
By convention, the tab-complete subscription parameters are listed in the COMPLETE_WITH lists in alphabetical order, but when the "disable_on_error" parameter was introduced this was not done. This patch just tidies that up. Reported-by: Peter Smith Author: Peter Smith Reviewed-by: Euler Taveira, Takamichi Osumi Backpatch-through: 15, where it was introduced Discussion: https://postgr.es/m/CAHut+PucvKZgg_eJzUW--iL6DXHg1Jwj6F09tQziE3kUF67uLg@mail.gmail.com
This commit is contained in:
parent
1409eade9f
commit
d547f7cf5e
@ -1873,7 +1873,7 @@ psql_completion(const char *text, int start, int end)
|
|||||||
COMPLETE_WITH("(", "PUBLICATION");
|
COMPLETE_WITH("(", "PUBLICATION");
|
||||||
/* ALTER SUBSCRIPTION <name> SET ( */
|
/* ALTER SUBSCRIPTION <name> SET ( */
|
||||||
else if (HeadMatches("ALTER", "SUBSCRIPTION", MatchAny) && TailMatches("SET", "("))
|
else if (HeadMatches("ALTER", "SUBSCRIPTION", MatchAny) && TailMatches("SET", "("))
|
||||||
COMPLETE_WITH("binary", "slot_name", "streaming", "synchronous_commit", "disable_on_error");
|
COMPLETE_WITH("binary", "disable_on_error", "slot_name", "streaming", "synchronous_commit");
|
||||||
/* ALTER SUBSCRIPTION <name> SKIP ( */
|
/* ALTER SUBSCRIPTION <name> SKIP ( */
|
||||||
else if (HeadMatches("ALTER", "SUBSCRIPTION", MatchAny) && TailMatches("SKIP", "("))
|
else if (HeadMatches("ALTER", "SUBSCRIPTION", MatchAny) && TailMatches("SKIP", "("))
|
||||||
COMPLETE_WITH("lsn");
|
COMPLETE_WITH("lsn");
|
||||||
@ -3152,8 +3152,8 @@ psql_completion(const char *text, int start, int end)
|
|||||||
/* Complete "CREATE SUBSCRIPTION <name> ... WITH ( <opt>" */
|
/* Complete "CREATE SUBSCRIPTION <name> ... WITH ( <opt>" */
|
||||||
else if (HeadMatches("CREATE", "SUBSCRIPTION") && TailMatches("WITH", "("))
|
else if (HeadMatches("CREATE", "SUBSCRIPTION") && TailMatches("WITH", "("))
|
||||||
COMPLETE_WITH("binary", "connect", "copy_data", "create_slot",
|
COMPLETE_WITH("binary", "connect", "copy_data", "create_slot",
|
||||||
"enabled", "slot_name", "streaming",
|
"disable_on_error", "enabled", "slot_name", "streaming",
|
||||||
"synchronous_commit", "two_phase", "disable_on_error");
|
"synchronous_commit", "two_phase");
|
||||||
|
|
||||||
/* CREATE TRIGGER --- is allowed inside CREATE SCHEMA, so use TailMatches */
|
/* CREATE TRIGGER --- is allowed inside CREATE SCHEMA, so use TailMatches */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user