Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit64ad372

Browse files
committed
Remove some code related to 7.3 and older servers from tools of src/bin/
This code was broken as of582edc3, and is most likely not used anymore.Note that pg_dump supports servers down to 8.0, and psql has code tosupport servers down to 7.4.Author: Julien RouhaudReviewed-by: Tom LaneDiscussion:https://postgr.es/m/CAOBaU_Y5y=zo3+2gf+2NJC1pvMYPcbRXoQaPXx=U7+C8Qh4CzQ@mail.gmail.com
1 parent0616aed commit64ad372

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
@@ -145,9 +145,8 @@ connectDatabase(const char *dbname, const char *pghost,
145145
exit(1);
146146
}
147147

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

152151
returnconn;
153152
}
@@ -311,13 +310,6 @@ appendQualifiedRelation(PQExpBuffer buf, const char *spec,
311310
PGresult*res;
312311
intntups;
313312

314-
/* Before 7.3, the concept of qualifying a name did not exist. */
315-
if (PQserverVersion(conn)<70300)
316-
{
317-
appendPQExpBufferStr(&sql,spec);
318-
return;
319-
}
320-
321313
split_table_columns_spec(spec,PQclientEncoding(conn),&table,&columns);
322314

323315
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp