create database with template question - Mailing list pgsql-admin

From Dev
Subject create database with template question
Date
Msg-id 962504.95815.qm@web53710.mail.re2.yahoo.com
Whole thread Raw
Responses Re: create database with template question  ("Scott Marlowe" <scott.marlowe@gmail.com>)
List pgsql-admin
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?


/Dev

pgsql-admin by date:

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