Обсуждение: block a database

Поиск
Список
Период
Сортировка

block a database

От
ALEXANDER JOSE
Дата:
As I can block a database so users can not connect without affecting the other databases.


Atentamente,

Alexander Angel
DBA
058-02128018316


Connect to the next generation of MSN Messenger  Get it now!

Re: block a database

От
"Kevin Grittner"
Дата:
ALEXANDER JOSE <aangelj@hotmail.com> wrote:

> As I can block a database so users can not connect without
> affecting the other databases.

You probably want to use the pg_hba.conf file:

http://www.postgresql.org/docs/8.4/interactive/auth-pg-hba-conf.html

-Kevin

Re: block a database

От
Bruce Momjian
Дата:
Kevin Grittner wrote:
> ALEXANDER JOSE <aangelj@hotmail.com> wrote:
>
> > As I can block a database so users can not connect without
> > affecting the other databases.
>
> You probably want to use the pg_hba.conf file:
>
> http://www.postgresql.org/docs/8.4/interactive/auth-pg-hba-conf.html

or:

    ALTER DATABASE ...  CONNECTION LIMIT connlimit

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com