]> granicus.if.org Git - postgresql/commitdiff
Remove some code related to 7.3 and older servers from tools of src/bin/
authorMichael Paquier <michael@paquier.xyz>
Tue, 7 May 2019 05:20:01 +0000 (14:20 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 7 May 2019 05:20:01 +0000 (14:20 +0900)
This code was broken as of 582edc3, and is most likely not used anymore.
Note that pg_dump supports servers down to 8.0, and psql has code to
support servers down to 7.4.

Author: Julien Rouhaud
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/CAOBaU_Y5y=zo3+2gf+2NJC1pvMYPcbRXoQaPXx=U7+C8Qh4CzQ@mail.gmail.com

src/bin/scripts/common.c

index 8073ee0d0efbaaba883edb106a732fc50e5c3c0c..5088c4c48e4a35cc54c25dc4fddaa83d8280ba3f 100644 (file)
@@ -145,9 +145,8 @@ connectDatabase(const char *dbname, const char *pghost,
                exit(1);
        }
 
-       if (PQserverVersion(conn) >= 70300)
-               PQclear(executeQuery(conn, ALWAYS_SECURE_SEARCH_PATH_SQL,
-                                                        progname, echo));
+       PQclear(executeQuery(conn, ALWAYS_SECURE_SEARCH_PATH_SQL,
+                                                progname, echo));
 
        return conn;
 }
@@ -311,13 +310,6 @@ appendQualifiedRelation(PQExpBuffer buf, const char *spec,
        PGresult   *res;
        int                     ntups;
 
-       /* Before 7.3, the concept of qualifying a name did not exist. */
-       if (PQserverVersion(conn) < 70300)
-       {
-               appendPQExpBufferStr(&sql, spec);
-               return;
-       }
-
        split_table_columns_spec(spec, PQclientEncoding(conn), &table, &columns);
 
        /*