Re: default database creation with initdb

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: default database creation with initdb
Дата
Msg-id 12287.1119101599@sss.pgh.pa.us
обсуждение исходный текст
Ответ на default database creation with initdb  (Andreas Pflug <pgadmin@pse-consulting.de>)
Список pgsql-patches
Andreas Pflug <pgadmin@pse-consulting.de> writes:
> +        "CREATE DATABASE \"default\";\n",
> +        "REVOKE CREATE,TEMPORARY ON DATABASE \"default\" FROM public;\n",

Uh, why the rights revocation?  That makes the thing essentially useless
... except to superusers, who will not be affected anyway.  I don't
think this is a sane default.

In any case, fixing initdb for this is trivial.  I count something north
of 160 other references to template1 in the current sources, scattered
across 60+ files.  Every one of those has to be looked at and possibly
changed.

            regards, tom lane

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

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: default database creation with initdb
Следующее
От: Andreas Pflug
Дата:
Сообщение: Re: default database creation with initdb