Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit af82f95

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 bdf595a commit af82f95

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/bin/scripts/common.c

+2-10
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,8 @@ connectDatabase(const char *dbname, const char *pghost,
146146
exit(1);
147147
}
148148

149-
if (PQserverVersion(conn) >= 70300)
150-
PQclear(executeQuery(conn, ALWAYS_SECURE_SEARCH_PATH_SQL,
151-
progname, echo));
149+
PQclear(executeQuery(conn, ALWAYS_SECURE_SEARCH_PATH_SQL,
150+
progname, echo));
152151

153152
return conn;
154153
}
@@ -308,13 +307,6 @@ appendQualifiedRelation(PQExpBuffer buf, const char *spec,
308307
PGresult *res;
309308
int ntups;
310309

311-
/* Before 7.3, the concept of qualifying a name did not exist. */
312-
if (PQserverVersion(conn) < 70300)
313-
{
314-
appendPQExpBufferStr(&sql, spec);
315-
return;
316-
}
317-
318310
splitTableColumnsSpec(spec, PQclientEncoding(conn), &table, &columns);
319311

320312
/*

0 commit comments

Comments
 (0)