Re: Restoring tables with circular references dumped to separate files

From: Uwe <uwe(at)oss4u(dot)com>
To: pgsql-general(at)postgresql(dot)org
Cc: doganmeh <mehmet(at)edgle(dot)com>
Subject: Re: Restoring tables with circular references dumped to separate files
Date: 2017-10-21 06:09:30
Message-ID: 3430419.aDL8jPP3m8@tiburon
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I would alter the tables and remove the foreign key constraint, restore the
data and add the constraint back. If the data is consistent, adding the
foreign key should work without error.

On Friday, October 20, 2017 8:15:27 PM PDT doganmeh wrote:
> I was dumping each table to a separate file so I could pick and choose when
> restoring. However, seems this was not a great idea, since two of my tables
> happened to reference each other via FOREIGN KEYs, and I am not able to
> restore them. Is there a way to do this without manually merging the dump
> files? Thanks for guidance in advance.
>
>
>
> --
> Sent from:
> http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Arthur Zakirov 2017-10-21 12:01:05 Re: tgrm index for word_similarity
Previous Message doganmeh 2017-10-21 03:15:27 Restoring tables with circular references dumped to separate files