Re: vacuumdb maintenance-db??

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: vacuumdb maintenance-db??
Дата
Msg-id CAKFQuwa9G-zBao=3M9ZE1sNhJg9jWYErGgB6LROPj_cO+jxtFQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: vacuumdb maintenance-db??  (Rui DeSousa <rui@crazybean.net>)
Ответы Re: vacuumdb maintenance-db??  (Rui DeSousa <rui@crazybean.net>)
Список pgsql-admin
On Wed, Nov 9, 2022 at 3:12 PM Rui DeSousa <rui@crazybean.net> wrote:

I always drop the postgres database; no need for it; and I also drop the public schema too.  I usually use a database name that corresponds to the given project.

I don't see the point of going to that effort - I'd rather just make the defaults remain available and ensure they are only accessible to the bootstrap superuser via the cluster owner.  That way you don't have to document your special environment for the next DBA that assumes "sudo -U postgres psql" is just going to work (and have a schema sitting there waiting for them to quickly do whatever semi-permanent stuff they are doing).

I would not want my production databases used for "maintenance purposes".  And using template1 as the maintenance database seems like a poor choice as well; too easy to make a mistake that will show up next time you perform CREATE DATABASE.

David J.

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

Предыдущее
От: Rui DeSousa
Дата:
Сообщение: Re: vacuumdb maintenance-db??
Следующее
От: Rui DeSousa
Дата:
Сообщение: Re: vacuumdb maintenance-db??