Devart.Data.PostgreSql.PgSqlDump DataBackup = new Devart.Data.PostgreSql.PgSqlDump();
DataBackup.Connection = myConnection.getConnection();
DataBackup.IncludeBlob = true;
DataBackup.CreateConstraints = true;
DataBackup.IncludeDrop = false;
DataBackup.IncludeUsers = false;
DataBackup.GenerateHeader = true;
DataBackup.Mode = Devart.Data.PostgreSql.DumpMode.All;
string name = "data.backup";
backups up the whole db. This produces a 215Mb file.
Now to test the restore:
Test core code is
Devart.Data.PostgreSql.PgSqlDump DataRestore = new Devart.Data.PostgreSql.PgSqlDump();
DataRestore.Connection = myConnection.getConnection();
My Backup program before Restore starts is showing a memory working set of 28Mb and Task Mgr also says I am using 26% of phys memory.
I start the restore and watch task manager.
1st attempt laptop blue screened after about 15 mins. Wasn't watching Task Manager this time around.
2nd attempt I saw the Memory Working Set grow to 1.6Gb and 84% of phys memory in use. Then I get an error.
1. Why so much memory need? How big must a machine be to use your dump method?
2. The error was:
Since the backup contains everything needed to restore why the error?"Error in File Restore or Update on Table "TblClientName" violates foreign key contraint "TblName_TblClientName""
I am using basically the same dataset as I sent/uploaded to you guys when I reported the error in build 140.
If I should be doing something different in the restore please let me know.
I want to use your mechanism.