pg_restore在前端需要更多时间

时间:2013-05-31 06:33:17

标签: vb.net postgresql postgresql-9.0

在我的项目中,我想restore前端database (vb.net 2008)

所以我在前端使用以下代码,但需要更多次。所以我非常调试。我的以下代码正确吗?或如何resore database中的postgresql 9.0

  xProcId = Shell(PSQL.InstPath & "pg_restore.exe -h " & servername & " -p " & Port _
                              & " -U " & superusername & " -d " & dbname& " -c -v " & backupfilepath , AppWinStyle.Hide)
                Process.GetProcessById(xProcId).WaitForExit()

先谢谢

1 个答案:

答案 0 :(得分:1)

不要使用-v(详细模式)会加快速度(除非你出于某种原因需要打印结果)。