Skip to content

Commit

Permalink
Add output file parameter, now required, to pg_restore.
Browse files Browse the repository at this point in the history
  • Loading branch information
zerebubuth committed Jul 16, 2020
1 parent 043c11a commit 2c6c815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dump_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ dump_reader::dump_reader(const std::string &table_name,
const std::string &dump_file)
: m_impl() {
std::ostringstream cmd;
cmd << "pg_restore -a -t " << table_name << " " << dump_file;
cmd << "pg_restore -f - -a -t " << table_name << " " << dump_file;
m_impl.reset(new pimpl(cmd.str(), table_name));
}

Expand Down

0 comments on commit 2c6c815

Please sign in to comment.