mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +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:
@@ -398,16 +398,6 @@ PostgreSQL documentation
|
||||
different worker jobs wouldn't be guaranteed to see the same data in
|
||||
each connection, which could lead to an inconsistent backup.
|
||||
</para>
|
||||
<para>
|
||||
If you want to run a parallel dump of a pre-9.2 server, you need to make sure that the
|
||||
database content doesn't change from between the time the leader connects to the
|
||||
database until the last worker job has connected to the database. The easiest way to
|
||||
do this is to halt any data modifying processes (DDL and DML) accessing the database
|
||||
before starting the backup. You also need to specify the
|
||||
<option>--no-synchronized-snapshots</option> parameter when running
|
||||
<command>pg_dump -j</command> against a pre-9.2 <productname>PostgreSQL</productname>
|
||||
server.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
@@ -945,9 +935,10 @@ PostgreSQL documentation
|
||||
<term><option>--no-synchronized-snapshots</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
This option allows running <command>pg_dump -j</command> against a pre-9.2
|
||||
server, see the documentation of the <option>-j</option> parameter
|
||||
for more details.
|
||||
This option allows running <command>pg_dump -j</command> against a
|
||||
pre-v10 standby server, at the cost of possibly producing an
|
||||
inconsistent dump. See the documentation of the <option>-j</option>
|
||||
parameter for more details.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@@ -1381,7 +1372,7 @@ CREATE DATABASE foo WITH TEMPLATE template0;
|
||||
<productname>PostgreSQL</productname> server versions newer than
|
||||
<application>pg_dump</application>'s version. <application>pg_dump</application> can also
|
||||
dump from <productname>PostgreSQL</productname> servers older than its own version.
|
||||
(Currently, servers back to version 8.0 are supported.)
|
||||
(Currently, servers back to version 9.2 are supported.)
|
||||
However, <application>pg_dump</application> cannot dump from
|
||||
<productname>PostgreSQL</productname> servers newer than its own major version;
|
||||
it will refuse to even try, rather than risk making an invalid dump.
|
||||
|
Reference in New Issue
Block a user