Re: Custom Templates? - Mailing list pgsql-novice

From Oliver Elphick
Subject Re: Custom Templates?
Date
Msg-id 200110170712.f9H7BePo012371@linda.lfix.co.uk
Whole thread Raw
In response to Custom Templates?  (James Hall <James.Hall@RadioShack.com>)
List 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 by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: postgresql.conf
Next
From: Francisco Reyes
Date:
Subject: Re: Where info on new releases?