but to abort the dump.
- For a consistent backu p, the database server needs to support
+ To perform a parallel dum p, the database server needs to support
synchronized snapshots, a feature that was introduced in
PostgreSQL 9.2 for primary servers and 10
for standbys. With this feature, database clients can ensure they see
-
- --no-synchronized-snapshots
-
- This option allows running pg_dump -j against a
- pre-v10 standby server, at the cost of possibly producing an
- inconsistent dump. See the documentation of the -j
- parameter for more details.
-
-
-
-
--no-tablespaces
{"no-publications", no_argument, &dopt.no_publications, 1},
{"no-security-labels", no_argument, &dopt.no_security_labels, 1},
{"no-subscriptions", no_argument, &dopt.no_subscriptions, 1},
- {"no-synchronized-snapshots", no_argument, &dopt.no_synchronized_snapshots, 1},
{"no-toast-compression", no_argument, &dopt.no_toast_compression, 1},
{"no-unlogged-table-data", no_argument, &dopt.no_unlogged_table_data, 1},
{"no-sync", no_argument, NULL, 7},
printf(_(" --no-publications do not dump publications\n"));
printf(_(" --no-security-labels do not dump security label assignments\n"));
printf(_(" --no-subscriptions do not dump subscriptions\n"));
- printf(_(" --no-synchronized-snapshots do not use synchronized snapshots in parallel jobs\n"));
printf(_(" --no-tablespaces do not dump tablespace assignments\n"));
printf(_(" --no-toast-compression do not dump TOAST compression methods\n"));
printf(_(" --no-unlogged-table-data do not dump unlogged table data\n"));
ExecuteSqlStatement(AH, query->data);
destroyPQExpBuffer(query);
}
- else if (AH->numWorkers > 1 &&
- !dopt->no_synchronized_snapshots)
+ else if (AH->numWorkers > 1)
{
if (AH->isStandby && AH->remoteVersion < 100000)
- fatal("Synchronized snapshots on standby servers are not supported by this server version.\n"
- "Run with --no-synchronized-snapshots instead if you do not need\n"
- "synchronized snapshots.");
-
-
+ fatal("parallel dumps from standby servers are not supported by this server version");
AH->sync_snapshot_id = get_synchronized_snapshot(AH);
}
}