Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id CA4552E003D for ; Thu, 24 Apr 2008 04:57:26 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 69049-09 for ; Thu, 24 Apr 2008 04:57:18 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by developer.postgresql.org (Postfix) with ESMTP id BDD982E0037 for ; Thu, 24 Apr 2008 04:57:22 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.1/8.14.1) with ESMTP id m3O7vJqo063162 for ; Thu, 24 Apr 2008 04:57:19 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.1/8.14.1/Submit) id m3O7kpel060814 for pgsql-admin@postgresql.org; Thu, 24 Apr 2008 04:46:51 -0300 (ADT) (envelope-from news) From: "Sabin Coanda" X-Newsgroups: pgsql.admin Subject: loosing constraint at backup Date: Thu, 24 Apr 2008 10:47:00 +0300 Organization: Hub.Org Networking Services Lines: 30 Message-ID: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Original To: pgsql-admin@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/242 X-Sequence-Number: 29006 Hi there, I have a script running frequently in development process that copy a database from a linux os machine to another windows os. On windows I have "PostgreSQL 8.2.4 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC) 3.4.2 (mingw-special)". On linux: "PostgreSQL 8.2.3 on i686-redhat-linux-gnu, compiled by GCC gcc (GCC) 4.0.2 20051125 (Red Hat 4.0.2-8)". The script use the following commands to dump/restore: pg_dump.exe -i -F c -b -v -U postgres -f -h src_ip -p src_port pg_restore.exe -i -d -v --disable-triggers -U postgres In rare cases, I found one foreign key constraint is missing on destination. Unfortunatelly, in spite this problem happens to me since a long time, the problem is not reproductible, and this is the reason I was reticent to post it until now. In the future, also I will keep the backup file to found whether the problem is on dump or restore. Is this problem known ? TIA, Sabin