Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a0qpu-0008Mz-Er for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Nov 2015 13:07:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a0qpt-0003rQ-Oo for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Nov 2015 13:07:13 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a0qpH-0003B3-TV for pgsql-bugs@postgresql.org; Mon, 23 Nov 2015 13:06:36 +0000 Received: from mail-qk0-x233.google.com ([2607:f8b0:400d:c09::233]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1a0qpA-0007jK-D4 for pgsql-bugs@postgresql.org; Mon, 23 Nov 2015 13:06:34 +0000 Received: by qkas77 with SMTP id s77so58858348qka.0 for ; Mon, 23 Nov 2015 05:06:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=9vNwq5lF4kxGru39LBMG/Y2VlmRL+i4Zl2YzQ2e8AhY=; b=GOmsVdf20TG6HJ+uCBrGhcMSbCkOrqpGc4iQFyWo9yliavdwBCJrjNQjS2p/mykd33 UFUZr95TtKswzhXP7qEvRKODtxuLhRl+VvVfUAKUForKSfjfFKYWxna9jsgj2VOcOxBY C7Id2K257rVZjLHFagMO6ccQC8HSwNJ7TOekr4vZQ1qEF5kfnTWg4iDcf2eUBTMEXzu3 n37zze+hFuh+9f3U/3J60FqtQNnPoW8s6c+/FQpTqriU/B6yZeGX/DFG+YpaT0JrAJFB CqNrvUXLisOvu0sv9Jg7LcRhGFqdFB0Zovs407rptiA6QQB4clM8vRYgGmW5kZeNT76L BCRw== MIME-Version: 1.0 X-Received: by 10.55.204.213 with SMTP id n82mr27205471qkl.36.1448283986753; Mon, 23 Nov 2015 05:06:26 -0800 (PST) Received: by 10.140.86.84 with HTTP; Mon, 23 Nov 2015 05:06:26 -0800 (PST) In-Reply-To: <1448281678687-5874794.post@n5.nabble.com> References: <1448281678687-5874794.post@n5.nabble.com> Date: Mon, 23 Nov 2015 22:06:26 +0900 Message-ID: Subject: Re: pg_dump - wrong order with inheritance From: Michael Paquier To: pinker Cc: PostgreSQL mailing lists Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Mon, Nov 23, 2015 at 9:27 PM, pinker wrote: > Some tables are inherited. Maybe it's the issue with right order by inheritance? Maybe I can somehow force another order? pg_dump is usually able to take care of that automatically and dumps the data in an order that makes sense by looking at the tree dependency of relations. One way that would allow you to bypass this error in any case is to use pg_dump --disable-triggers so as those integrity checks are disabled when loading the data. This will add in the dump the necessary commands to do so, thought reloading the dump will need superuser rights. -- Michael -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs