Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Babel: Enable babelfishpg_tsql.dump_restore GUC while restoring roles (#467) #478

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/bin/pg_dump/dumpall_babel_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading