pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: dev_hyd2001@yahoo.com
Cc: pgsql-admin@postgresql.org
Subject: Re: create database with template question
Date: Thu, 10 Jul 2008 08:33:17 -0600
Message-ID: <dcc563d10807100733s7ac2a3c8mb8f937ef64d5111b@mail.gmail.com> (raw)
In-Reply-To: <962504.95815.qm@web53710.mail.re2.yahoo.com>
References: <962504.95815.qm@web53710.mail.re2.yahoo.com>

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.



view thread (2+ messages)

Message-ID: <dcc563d10807100733s7ac2a3c8mb8f937ef64d5111b@mail.gmail.com>
Permalink:  ../dcc563d10807100733s7ac2a3c8mb8f937ef64d5111b@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10807100733s7ac2a3c8mb8f937ef64d5111b@mail.gmail.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: scott.marlowe@gmail.com, dev_hyd2001@yahoo.com
  Subject: Re: create database with template question
  In-Reply-To: <dcc563d10807100733s7ac2a3c8mb8f937ef64d5111b@mail.gmail.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