Re: How to block access to a scheme

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: Eduardo Sá dos Reis <eduardoreis(at)pjf(dot)mg(dot)gov(dot)br>, <pgsql-admin(at)postgresql(dot)org>
Cc: <felipe_lt(at)yahoo(dot)com(dot)br>
Subject: Re: How to block access to a scheme
Date: 2010-04-08 14:53:48
Message-ID: 4BBDA7AC0200002500030589@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Eduardo Sá dos Reis<eduardoreis(at)pjf(dot)mg(dot)gov(dot)br> wrote:

> How to block access to a scheme
>
> I have a database with multiple schemas. I need to block access to
> a particular scheme for doing maintenance on the structure of your
> tables. Does anyone know how to block access to the schema.

I'm not sure I exactly understand, but you can probably find
something on this page that will help:

http://www.postgresql.org/docs/8.4/interactive/sql-revoke.html

Perhaps this?:

REVOKE ALL ON SCHEMA x FROM y;

> I also need to disconnect users who are accessing the system.

http://www.postgresql.org/docs/8.4/interactive/functions-admin.html#FUNCTIONS-ADMIN-SIGNAL-TABLE

Before using these functions, you probably want to modify the
pg_hba.conf file and signal a reload, to block new logins.

-Kevin

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jonathan Foy 2010-04-08 15:03:14 Re: PD_ALL_VISIBLE flag warning
Previous Message Alvaro Herrera 2010-04-08 14:53:28 Re: Autovacuum daemon functionality questions