Re: cloning database

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: cloning database
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B17D41611@ntex2010a.host.magwien.gv.at
обсуждение исходный текст
Ответ на cloning database  (Philipp Kraus <philipp.kraus@flashpixx.de>)
Список pgsql-general
Philipp Kraus wrote:
> I need around 150 copies of a database (for an exam). I have got a
> database with tables and data and for my exam I would copy this
> database in his way:
> 
> database_source
> 
> database1
> database2
> ….
> database150
> 
> Is there a buildin way to clone the "database_source" with all
> structure and data into a new database "database1..150" ?

CREATE DATABASE database1 TEMPLATE database_source;

Yours,
Laurenz Albe

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

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