diff --git a/src/bin/pg_dump/dumpall_babel_utils.c b/src/bin/pg_dump/dumpall_babel_utils.c index baae7175821..a185690d9ef 100644 --- a/src/bin/pg_dump/dumpall_babel_utils.c +++ b/src/bin/pg_dump/dumpall_babel_utils.c @@ -144,6 +144,9 @@ dumpBabelRestoreChecks(FILE *OPF, PGconn *conn, int binary_upgrade) res = executeQuery(conn, "SELECT setting::INT from pg_settings WHERE name = 'server_version_num';"); source_server_version_num = atoi(PQgetvalue(res, 0, 0)); + /* SET babelfishpg_tsql.dump_restore GUC in the beginning */ + appendPQExpBufferStr(qry, "SET babelfishpg_tsql.dump_restore = TRUE;\n"); + /* * Temporarily enable ON_ERROR_STOP so that whole restore script * execution fails if the following do block raises an error.