Re: template1, can there be a template2/3/4?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jim Mercer <jim(at)reptiles(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: template1, can there be a template2/3/4?
Date: 2001-06-04 16:29:08
Message-ID: 6321.991672148@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jim Mercer <jim(at)reptiles(dot)org> writes:
> ah, so users/groups are not stored in template1, but in some other series
> of physical files.

pg_shadow/pg_group are installation-wide; they do not belong to any
individual database. This is done via special hacks (cf
IsSharedSystemRelation).

> i imagine it would be architectually difficult to have seperate user/group
> tables per database.

Codewise it would be trivial --- remove 'em from the list of shared
relations. From the point of view of backwards compatibility, however,
that's not likely to happen.

If you want to restrict users to connect only to their own database,
the 'sameuser' option in pg_hba.conf might be helpful.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lamar Owen 2001-06-04 16:45:24 Re: 7.1.2 packaging
Previous Message Jim Mercer 2001-06-04 16:20:10 Re: template1, can there be a template2/3/4?