pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dev <dev_hyd2001@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: create database with template question
Date: Thu, 10 Jul 2008 06:24:14 -0700 (PDT)
Message-ID: <962504.95815.qm@web53710.mail.re2.yahoo.com> (raw)

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



      

view thread (2+ messages)  latest in thread

Message-ID: <962504.95815.qm@web53710.mail.re2.yahoo.com>
Permalink:  ../962504.95815.qm@web53710.mail.re2.yahoo.com/
Also on:    postgresql.org/message-id/962504.95815.qm@web53710.mail.re2.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: dev_hyd2001@yahoo.com
  Subject: Re: create database with template question
  In-Reply-To: <962504.95815.qm@web53710.mail.re2.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox