From: Marcin Mańk [mailto:marcin.mank@xxxxxxxxx]
On Mon, Sep 9, 2013 at 4:00 PM, Chris Curvey <ccurvey@xxxxxxxxxxxxxxxxxx> wrote:
Is it crashing on a specific database object? pg_restore -v will tell you how far it went. Then try to restore only that object. Is it perhaps crashing on a specific row?
Try producing a self contained test case (like only the culprit table, anonymized).
Regards Marcin Mańk
Good advice. I turned on –verbose, and got a ton of output, ending with:
pg_restore: setting owner and privileges for FK CONSTRAINT user_id_refs_id_7ceef80f pg_restore: setting owner and privileges for FK CONSTRAINT user_id_refs_id_dfbab7d pg_restore: [archiver (db)] could not execute query: no connection to the server Command was: -- Completed on 2013-09-09 11:35:16 EDT
pg_restore: [archiver (db)] could not execute query: no connection to the server Command was: -- -- PostgreSQL database dump complete –
Which I find really odd, because I specified –no-owner –no-privileges –no-tablespace chris@mu:/sdb$ pg_restore --dbname=certified_mail_ccc2 --format=c --verbose --clean --no-owner --no-privileges --no-tablespaces -h mu -p 5434 cm_Mon.backup
So now I’m up to three questions. (Why the crash? How to get backtrace? Why are we applying permissions when I said not to?) I guess that’s the nature of the universe. Let me see if I can figure out which table that is and try to create a test case.
DisclaimerTHIS IS A CONFIDENTIAL COMMUNICATION. The information contained in this e-mail is attorney-client privileged and confidential, intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are here by notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by reply e-mail or by telephone (908) 233-8500.Thank you.. |