Re: [GENERAL] Move rows from one database to other

Поиск
Список
Период
Сортировка
Искать
От
Thomas Güttler
Тема
Re: [GENERAL] Move rows from one database to other
Дата
Msg-id
95241ec8-4900-7eef-7dbe-c868c5ce20d5@thomas-guettler.de
Ответ на
Список
Дерево обсуждения
[GENERAL] Move rows from one database to other Thomas Güttler <guettliml@thomas-guettler.de>
Re: [GENERAL] Move rows from one database to other Adrian Klaver <adrian.klaver@aklaver.com>
Re: [GENERAL] Move rows from one database to other Adrian Klaver <adrian.klaver@aklaver.com>
Re: [GENERAL] Move rows from one database to other Thomas Güttler <guettliml@thomas-guettler.de>
Re: [GENERAL] Move rows from one database to other Adrian Klaver <adrian.klaver@aklaver.com>
Re: [GENERAL] Move rows from one database to other Thomas Güttler <guettliml@thomas-guettler.de>
Re: [GENERAL] Move rows from one database to other William Ivanski <william.ivanski@gmail.com>
Re: [GENERAL] Move rows from one database to other Thomas Güttler <guettliml@thomas-guettler.de>
Re: [GENERAL] Move rows from one database to other Adrian Klaver <adrian.klaver@aklaver.com>
Re: [GENERAL] Move rows from one database to other Melvin Davidson <melvin6925@gmail.com>
Re: [GENERAL] Move rows from one database to other Thomas Güttler <guettliml@thomas-guettler.de>
Re: [GENERAL] Move rows from one database to other Melvin Davidson <melvin6925@gmail.com>
Re: [GENERAL] Move rows from one database to other Thomas Güttler <guettliml@thomas-guettler.de>
Re: [GENERAL] Move rows from one database to other Francisco Olarte <folarte@peoplecall.com>
Re: [GENERAL] Move rows from one database to other Leknín Řepánek <godzilalalala@gmail.com>
Re: [GENERAL] Move rows from one database to other Thomas Güttler <guettliml@thomas-guettler.de>
Re: [GENERAL] Move rows from one database to other Francisco Olarte <folarte@peoplecall.com>
Re: [GENERAL] Move rows from one database to other Thomas Güttler <guettliml@thomas-guettler.de>
Re: [GENERAL] Move rows from one database to other Francisco Olarte <folarte@peoplecall.com>
Re: [GENERAL] Move rows from one database to other Adrian Klaver <adrian.klaver@aklaver.com>
Re: [GENERAL] Move rows from one database to other Thomas Güttler <guettliml@thomas-guettler.de>
Re: [GENERAL] Move rows from one database to other Francisco Olarte <folarte@peoplecall.com>
Re: [GENERAL] via psycopg2 or pg2pg? Move rows from one database toother Thomas Güttler <guettliml@thomas-guettler.de>
Re: [GENERAL] via psycopg2 or pg2pg? Move rows from one database to other Francisco Olarte <folarte@peoplecall.com>
Re: [GENERAL] Move rows from one database to other Moreno Andreo <moreno.andreo@evolu-s.it>


Am 23.02.2017 um 13:44 schrieb Leknín Řepánek:
> Maybe you can do something like
>
> WITH cte AS (
> DELETE FROM t1 WHERE cond
> RETURNINIG *
> )
> INSERT into t2
> SELECT * FROM cte;
>
> To move rows between tables with combination with fdw_postgres and
> foreign table.


... this way you don't need the second table ... nice.


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

В списке pgsql-general по дате отправления
От: Thomas Güttler
Дата:
От: Ertan Küçükoğlu
Дата:
FAQ