aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/tab-complete.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-12-16 14:02:28 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2021-12-16 14:02:28 -0500
commitcf0cab868aa4758b7eec5f9412f2ec74acda7f45 (patch)
tree08134fff4f15b4609259765407e391e671bdd1bb /src/bin/psql/tab-complete.c
parentc49d926833fa6a987e3f9a66027f4a01d7a008be (diff)
downloadpostgresql-cf0cab868aa4758b7eec5f9412f2ec74acda7f45.tar.gz
postgresql-cf0cab868aa4758b7eec5f9412f2ec74acda7f45.zip
Remove psql support for server versions preceding 9.2.
Per discussion, we'll limit support for old servers to those branches that can still be built easily on modern platforms, which as of now is 9.2 and up. Aside from removing code that is dead per the assumption of server >= 9.2, I tweaked the startup warning for unsupported versions to complain about too-old servers as well as too-new ones. The warning that "Some psql features might not work" applies precisely to both cases. Discussion: https://postgr.es/m/2923349.1634942313@sss.pgh.pa.us
Diffstat (limited to 'src/bin/psql/tab-complete.c')
-rw-r--r--src/bin/psql/tab-complete.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c
index 2f412ca3db3..b524dc87fc1 100644
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -993,7 +993,7 @@ Query_for_index_of_table \
/*
* These object types were introduced later than our support cutoff of
- * server version 7.4. We use the VersionedQuery infrastructure so that
+ * server version 9.2. We use the VersionedQuery infrastructure so that
* we don't send certain-to-fail queries to older servers.
*/
@@ -2911,7 +2911,7 @@ psql_completion(const char *text, int start, int end)
Matches("CREATE", "OR", "REPLACE", "TRANSFORM"))
COMPLETE_WITH("FOR");
else if (Matches("CREATE", "TRANSFORM", "FOR") ||
- Matches("CREATE","OR", "REPLACE", "TRANSFORM", "FOR"))
+ Matches("CREATE", "OR", "REPLACE", "TRANSFORM", "FOR"))
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_datatypes, NULL);
else if (Matches("CREATE", "TRANSFORM", "FOR", MatchAny) ||
Matches("CREATE", "OR", "REPLACE", "TRANSFORM", "FOR", MatchAny))