Re: cloning database

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: cloning database
Дата
Msg-id CAKrjmhfXBjk=n+xzDk_fxpDf87fPFrCRPq=n2-4t4dyWLU2+ng@mail.gmail.com
обсуждение исходный текст
Ответ на cloning database  (Philipp Kraus <philipp.kraus@flashpixx.de>)
Ответы Re: cloning database  (Craig Ringer <craig@2ndquadrant.com>)
Re: cloning database  (David G Johnston <david.g.johnston@gmail.com>)
Список pgsql-general
On Fri, Sep 19, 2014 at 8:35 AM, Philipp Kraus <philipp.kraus@flashpixx.de> wrote:
Is there a buildin way to clone the "database_source" with all structure and data into a new database "database1..150" ?

assuming you're using bash shell, this should work:

for i in {1..150}; do createdb -T database_source database$i; done

it's not a built-in, but very close.

depesz

В списке pgsql-general по дате отправления:

Предыдущее
От: Chris Travers
Дата:
Сообщение: Re: Why isn't Java support part of Postgresql core?
Следующее
От: Bill Moran
Дата:
Сообщение: Re: ALTER TEXT field to VARCHAR(1024)