ahprintf(AH, "BEGIN;\n\n");
}
+ /*
+ * Disable statement_timeout in archive for pg_restore/psql
+ */
+ ahprintf(AH, "SET statement_timeout = 0;\n");
+
/*
* Establish important parameter values right away.
*/
if (g_fout->remoteVersion >= 80300)
do_sql_command(g_conn, "SET synchronize_seqscans TO off");
+ /*
+ * Disable timeouts if supported.
+ */
+ if (g_fout->remoteVersion >= 70300)
+ do_sql_command(g_conn, "SET statement_timeout = 0");
+
/*
* Start serializable transaction to dump consistent data.
*/