Skip to content

Commit 9a6a104

Browse files
committed
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
1 parent 30b1e1a commit 9a6a104

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/bin/scripts/common.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,8 @@ connectDatabase(const char *dbname, const char *pghost,
136136
exit(1);
137137
}
138138

139-
if (PQserverVersion(conn) >= 70300)
140-
PQclear(executeQuery(conn, ALWAYS_SECURE_SEARCH_PATH_SQL,
141-
progname, echo));
139+
PQclear(executeQuery(conn, ALWAYS_SECURE_SEARCH_PATH_SQL,
140+
progname, echo));
142141

143142
return conn;
144143
}
@@ -302,13 +301,6 @@ appendQualifiedRelation(PQExpBuffer buf, const char *spec,
302301
PGresult *res;
303302
int ntups;
304303

305-
/* Before 7.3, the concept of qualifying a name did not exist. */
306-
if (PQserverVersion(conn) < 70300)
307-
{
308-
appendPQExpBufferStr(&sql, spec);
309-
return;
310-
}
311-
312304
split_table_columns_spec(spec, PQclientEncoding(conn), &table, &columns);
313305

314306
/*

0 commit comments

Comments
 (0)