clear out keys buffer in postgres. Fix postgres schema

This commit is contained in:
CJ Cobb
2021-06-01 15:10:14 +00:00
parent 9a4949263e
commit 46d4ee4548
4 changed files with 13 additions and 6 deletions

View File

@@ -697,6 +697,8 @@ PostgresBackend::writeKeys(
{
if (numRows > 0)
conn.bulkInsert("keys", buffer.str());
std::stringstream temp;
buffer.swap(temp);
conn("COMMIT");
}
return true;