在我的项目中,我想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()
先谢谢
答案 0 :(得分:1)
不要使用-v(详细模式)会加快速度(除非你出于某种原因需要打印结果)。