Re: Move rows from one database to other

From: Thomas Güttler <guettliml(at)thomas-guettler(dot)de>
To: Melvin Davidson <melvin6925(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Move rows from one database to other
Date: 2017-02-22 12:51:00
Message-ID: bb46187c-5115-6472-71ac-a3d6b1487d2d@thomas-guettler.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>>I have other concerns: atomar transaction. Movement should happen completely or not all.
>>I don't think you can do this reliable (atomic transaction) with "copy table_name".
>
> You can if you wrap it in a transaction:

I want to **move** the data. The data should get deleted on the satellite after transfer.

I don't know how to delete the data which was copied, since inserts can happen during the copy statement.

Regards,
Thomas Güttler

--
Thomas Guettler http://www.thomas-guettler.de/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2017-02-22 15:00:34 Re: Move rows from one database to other
Previous Message Thomas Güttler 2017-02-22 12:47:47 Re: Move rows from one database to other