在我的项目中,我想在前端(vb.net 2008)中restore database。
所以我在前端使用了下面的代码,但这需要更多的时间。所以我相当的调试。我下面的代码正确吗?或者how to resore the database in 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()提前感谢
发布于 2013-06-12 08:16:28
不要使用-v (详细模式)会加快速度(除非您出于某种原因需要它来打印结果)。
https://stackoverflow.com/questions/16851074
复制相似问题