Re: create database from template requires the source database to be unused

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: create database from template requires the source database to be unused
Дата
Msg-id CAF-3MvMQtMLYjLrsFci=wmBt+Vnw=h_+672-gGBHZsik6G1Z+Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: create database from template requires the source database to be unused  ("Haszlakiewicz, Eric" <EHASZLA@transunion.com>)
Ответы Re: create database from template requires the source database to be unused  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
> I've read that postgres uses MVCC for transactions, and that it creates
> snapshots of the database for each transaction.  Couldn't the create
> database command just use that snapshot?

Database creation cannot be done inside a transaction (one of the few
DDL statements that can't), so no.

--
If you can't see the forest for the trees,
Cut the trees and you'll see there is no forest.

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

Предыдущее
От: "Haszlakiewicz, Eric"
Дата:
Сообщение: Re: create database from template requires the source database to be unused
Следующее
От: Arjen Nienhuis
Дата:
Сообщение: Re: create a script which imports csv data