From: | Jim Mercer <jim(at)reptiles(dot)org> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | template1, can there be a template2/3/4? |
Date: | 2001-06-04 15:16:40 |
Message-ID: | 20010604111640.W9538@reptiles.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
as i understand the usage of template1, it holds the system catalogs,
users, etc, etc.
it is accessed as a quasi-shadow database supporting the actual production
data databases.
would it be possible for me to create a template2 and have some arbitrary
database use it instead of template1?
the reason i ask this is that it would be useful to have something to the
effect of:
database access startup for "sample" database.
if exists sample_cat database, use it instead of template1
otherwise use template1
this way "sample" could have its own set of users, permissions, etc, etc.
it would be a method for getting around the fact that a user in template1
has access to all of the other databases, modulo per-database permissions
via GRANT/REVOKE
does this make any sense?
--
[ Jim Mercer jim(at)reptiles(dot)org +1 416 410-5633 ]
[ Now with more and longer words for your reading enjoyment. ]
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-06-04 15:17:30 | Re: upgrading a database with large objects |
Previous Message | Lamar Owen | 2001-06-04 15:07:50 | Re: 7.1.2 packaging |