pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedcreate database with template question
2+ messages / 2 participants
[nested] [flat]
* create database with template question
@ 2008-07-10 13:24 Dev <dev_hyd2001@yahoo.com>
0 siblings, 1 reply; 2+ messages in thread
From: Dev @ 2008-07-10 13:24 UTC (permalink / raw)
To: 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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: create database with template question
@ 2008-07-10 14:33 Scott Marlowe <scott.marlowe@gmail.com>
parent: Dev <dev_hyd2001@yahoo.com>
0 siblings, 0 replies; 2+ messages in thread
From: Scott Marlowe @ 2008-07-10 14:33 UTC (permalink / raw)
To: dev_hyd2001@yahoo.com; +Cc: 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.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2008-07-10 14:33 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-07-10 13:24 create database with template question Dev <dev_hyd2001@yahoo.com>
2008-07-10 14:33 ` Scott Marlowe <scott.marlowe@gmail.com>
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