Revoke Public Database Connect

Поиск
Список
Период
Сортировка
От Alan Gutierrez
Тема Revoke Public Database Connect
Дата
Msg-id 4DDFE586.1050104@prettyrobots.com
обсуждение исходный текст
Ответы Re: Revoke Public Database Connect  (Francisco Leovey <fleovey@yahoo.com>)
Re: Revoke Public Database Connect  (Steve Crawford <scrawford@pinpointresearch.com>)
Список pgsql-novice
I'm configuring a multi-tenant PostgreSQL server. When I create a new
database, anyone can connect to it. For me, that is bad.

I run:

REVOKE CONNECT ON DATABASE d FROM public;

Now I'm only able to connect to the database as postgres.

I tired putting the create and revoke in a transaction, but create
database cannot be put in a transaction. How do I create a database so
there is not that nanosecond window where someone could connect to the
database publiclly?

--
Alan Gutierrez - http://twitter.com/bigeasy - http://github.com/bigeasy

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

Предыдущее
От: Chetan Suttraway
Дата:
Сообщение: Re: Log user creation and deletion
Следующее
От: Francisco Leovey
Дата:
Сообщение: Re: Revoke Public Database Connect