Re: Custom Templates?

Поиск
Список
Период
Сортировка
От Oliver Elphick
Тема Re: Custom Templates?
Дата
Msg-id 200110170712.f9H7BePo012371@linda.lfix.co.uk
обсуждение исходный текст
Ответ на Custom Templates?  (James Hall <James.Hall@RadioShack.com>)
Список pgsql-novice
James Hall wrote:
  >I would like to make a custom template for creating databases, but I am
  >having a difficult time finding documentation online to assist me. If anyone
  >can point me in the right direction it would be appreciated.

By default, a new database copies everything in template1.

If you want to use a special template, you can use:

  CREATE DATABASE name WITH TEMPLATE = special_template;

but read the man page first (man create_database).

--
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C

     "Trust in the LORD, and do good..."        Psalms 37:3



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

Предыдущее
От: "Josh Berkus"
Дата:
Сообщение: Re: postgresql.conf
Следующее
От: Francisco Reyes
Дата:
Сообщение: Re: Where info on new releases?