来源于:https://access.redhat.com/solutions/69464
What kind of return codes does pg_dump have ?
SOLUTION UNVERIFIED - 已更新 2012年八月21日08:19 -
环境
Postgresql :8.1.11
问题
The customer want to use pg_dump utility in some script to weekly backup of PostgreSQL DB.
And they want to know about return codes of pg_dump command.
决议
I Confirmed the source code of pg_dump, and I found that it include only two exit code.
0--> exit normally
1--> indicate some error.
If pg_dump finished with exit code 1, it also provides error message.
And pg_dump doesn't return other specific error codes but '1'.
根源
N/A
诊断步骤
Read Source code.
本文详细解释了PostgreSQL备份工具pg_dump的返回码含义。在正常退出时返回0,遇到错误时返回1,并附带错误信息。对于计划的PostgreSQL数据库备份脚本,了解这些返回码有助于错误处理。
710

被折叠的 条评论
为什么被折叠?



