我正在尝试使用pg_dump
. 我正在使用的命令是:
pg_dump --host xx.xx.xx.xx --port xxxx --username "xxx" --password --format custom --blobs --verbose --file "testing.db" "xxx"
当它转储数据库中的最后一个表时,它总是会因以下错误而崩溃:
pg_dump: Dumping the contents of table "versions" failed: PQgetCopyData() failed.
pg_dump: Error message from server: SSL error: sslv3 alert handshake failure
pg_dump: The command was: COPY public.xxx (columns) TO stdout;
我通过 SSH 连接到一个离我正在下载的服务器更近的服务器(我在布里斯班,它在旧金山),并且能够pg_dump
毫无问题地做到这一点。所以我知道数据库服务器很好。我怀疑这是超时,因为它在失败之前到达了最后一张桌子;如果它实际上是一个 SSL 错误,我预计它会更快出现。也就是说,每次失败都会在不同的时间后发生超时(最近的两个测试分别在 1300 秒和 1812 秒后失败)。
欢迎任何有关如何调试的提示。
我在 OS X 10.8.5 上。本地 pg_dump 是 9.2.4,服务器是运行 psql 9.1.9 的 Ubuntu Server。