Обсуждение: Custom Templates?

Поиск
Список
Период
Сортировка

Custom Templates?

От
James Hall
Дата:
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.

TIA!
-jim

Re: Custom Templates?

От
"Oliver Elphick"
Дата:
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