Re: create database with template question - Mailing list pgsql-admin

From Scott Marlowe
Subject Re: create database with template question
Date
Msg-id dcc563d10807100733s7ac2a3c8mb8f937ef64d5111b@mail.gmail.com
Whole thread Raw
In response to create database with template question  (Dev <dev_hyd2001@yahoo.com>)
List pgsql-admin
On Thu, Jul 10, 2008 at 7:24 AM, Dev <dev_hyd2001@yahoo.com> wrote:
> Hi,
>
>         I have a database with a table and some triggers and functions set
> on it. I converted it into a template setting the fields datallowcon=false
> and datistemplate=true on it. Lets assume this template(database) is called
> as mytemplate.
>
> Now, as a normal database user I issue the create database command and
> specify mytemplate
>
> i.e
>
> create database testdb template mytemplate;
>
> Everything works fine except that the table in the newly created testdb is
> still the user postgres, the one who created the template database.
>
> Is this expected behavior or am I missing something?

expected behaviour.

pgsql-admin by date:

Previous
From: Dev
Date:
Subject: create database with template question
Next
From: "Scott Marlowe"
Date:
Subject: Re: query optimization