aboutsummaryrefslogtreecommitdiff
path: root/src/bin/scripts/common.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2019-05-07 09:39:39 +0900
committerMichael Paquier <michael@paquier.xyz>2019-05-07 09:39:39 +0900
commitaf82f95abb23a56d18fd009ef9eca68ef803a041 (patch)
treef40c1d213d4b7b705282101fed47f3f9ba020d6d /src/bin/scripts/common.c
parentbdf595adbca195fa54a909c74a5233ebc30641a1 (diff)
downloadpostgresql-af82f95abb23a56d18fd009ef9eca68ef803a041.tar.gz
postgresql-af82f95abb23a56d18fd009ef9eca68ef803a041.zip
Remove some code related to 7.3 and older servers from tools of src/bin/
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
Diffstat (limited to 'src/bin/scripts/common.c')
-rw-r--r--src/bin/scripts/common.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/bin/scripts/common.c b/src/bin/scripts/common.c
index a661556ba91..a42afd490b0 100644
--- a/src/bin/scripts/common.c
+++ b/src/bin/scripts/common.c
@@ -146,9 +146,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;
}
@@ -308,13 +307,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;
- }
-
splitTableColumnsSpec(spec, PQclientEncoding(conn), &table, &columns);
/*