Re: template1 database

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: template1 database
Дата
Msg-id 11880.1110436589@sss.pgh.pa.us
обсуждение исходный текст
Ответ на template1 database  (Eimantas Vaičiūnas <eimantas.vaiciunas@sc.vu.lt>)
Список pgsql-admin
Eimantas =?utf-8?q?Vai=C4=8Di=C5=ABnas?= <eimantas.vaiciunas@sc.vu.lt> writes:
> Just been wondering how important is template1 database to PgSQL?

The database server itself doesn't care, but there are enough
client-side tools that assume template1 exists that you would not
find life pleasant if you do this.

> What would happen if i drop this database together with postgres user.

The root user does not have to be named "postgres", but you do have to
have a root user.  What exactly do you think will be accomplished by
removing the postgres user?

If you are just idly searching for ways to break your database, try
removing some of the builtin datatypes from pg_type, or builtin
functions from pg_proc, etc ...

            regards, tom lane

В списке pgsql-admin по дате отправления:

Предыдущее
От: Eimantas Vaičiūnas
Дата:
Сообщение: template1 database
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: template1 database