| От | Tom Lane |
|---|---|
| Тема | Re: template1, can there be a template2/3/4? |
| Дата | |
| Msg-id | 6321.991672148@sss.pgh.pa.us обсуждение |
| Ответ на | Re: template1, can there be a template2/3/4? (Jim Mercer <jim@reptiles.org>) |
| Список | pgsql-general |
Jim Mercer <jim@reptiles.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
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера