Re: [GENERAL] Move rows from one database to other - Mailing list pgsql-general

From Thomas Güttler
Subject Re: [GENERAL] Move rows from one database to other
Date
Msg-id bb46187c-5115-6472-71ac-a3d6b1487d2d@thomas-guettler.de
Whole thread Raw
In response to Re: [GENERAL] Move rows from one database to other  (Melvin Davidson <melvin6925@gmail.com>)
Responses Re: [GENERAL] Move rows from one database to other  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: [GENERAL] Move rows from one database to other  (Francisco Olarte <folarte@peoplecall.com>)
List 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/


pgsql-general by date:

Previous
From: Thomas Güttler
Date:
Subject: Re: [GENERAL] Move rows from one database to other
Next
From: Adrian Klaver
Date:
Subject: Re: [GENERAL] Move rows from one database to other