mirror of
https://github.com/postgres/postgres.git
synced 2025-10-16 17:07:43 +03:00
Remove pg_dump/pg_dumpall support for dumping from pre-9.2 servers.
Per discussion, we'll limit support for old servers to those branches
that can still be built easily on modern platforms, which as of now
is 9.2 and up. Remove over a thousand lines of code dedicated to
dumping from older server versions. (As in previous changes of
this sort, we aren't removing pg_restore's ability to read older
archive files ... though it's fair to wonder how that might be
tested nowadays.) This cleans up some dead code left behind by
commit 989596152
.
Discussion: https://postgr.es/m/2923349.1634942313@sss.pgh.pa.us
This commit is contained in:
@@ -904,13 +904,10 @@ restore_toc_entry(ArchiveHandle *AH, TocEntry *te, bool is_parallel)
|
||||
StartTransaction(&AH->public);
|
||||
|
||||
/*
|
||||
* If the server version is >= 8.4, make sure we issue
|
||||
* TRUNCATE with ONLY so that child tables are not
|
||||
* wiped.
|
||||
* Issue TRUNCATE with ONLY so that child tables are
|
||||
* not wiped.
|
||||
*/
|
||||
ahprintf(AH, "TRUNCATE TABLE %s%s;\n\n",
|
||||
(PQserverVersion(AH->connection) >= 80400 ?
|
||||
"ONLY " : ""),
|
||||
ahprintf(AH, "TRUNCATE TABLE ONLY %s;\n\n",
|
||||
fmtQualifiedId(te->namespace, te->tag));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user