来源于: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.