From: | "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com> |
---|---|
To: | dev_hyd2001(at)yahoo(dot)com |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: create database with template question |
Date: | 2008-07-10 14:33:17 |
Message-ID: | dcc563d10807100733s7ac2a3c8mb8f937ef64d5111b@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Thu, Jul 10, 2008 at 7:24 AM, Dev <dev_hyd2001(at)yahoo(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2008-07-10 15:47:29 | Re: query optimization |
Previous Message | Dev | 2008-07-10 13:24:14 | create database with template question |