pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael.paquier@gmail.com>
To: pinker <pinker@onet.eu>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: pg_dump - wrong order with inheritance
Date: Mon, 23 Nov 2015 22:06:26 +0900
Message-ID: <CAB7nPqTe1-Gm4MAytDQO2fvHa55k63YoxCy+QSSZJO4nOawjvA@mail.gmail.com> (raw)
In-Reply-To: <1448281678687-5874794.post@n5.nabble.com>
References: <1448281678687-5874794.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Mon, Nov 23, 2015 at 9:27 PM, pinker <pinker@onet.eu> 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



view thread (7+ messages)  latest in thread

Message-ID: <CAB7nPqTe1-Gm4MAytDQO2fvHa55k63YoxCy+QSSZJO4nOawjvA@mail.gmail.com>
Permalink:  ../CAB7nPqTe1-Gm4MAytDQO2fvHa55k63YoxCy+QSSZJO4nOawjvA@mail.gmail.com/
Also on:    postgresql.org/message-id/CAB7nPqTe1-Gm4MAytDQO2fvHa55k63YoxCy+QSSZJO4nOawjvA@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: michael.paquier@gmail.com, pinker@onet.eu
  Subject: Re: pg_dump - wrong order with inheritance
  In-Reply-To: <CAB7nPqTe1-Gm4MAytDQO2fvHa55k63YoxCy+QSSZJO4nOawjvA@mail.gmail.com>
  References: <1448281678687-5874794.post@n5.nabble.com> <CAB7nPqTe1-Gm4MAytDQO2fvHa55k63YoxCy+QSSZJO4nOawjvA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox