Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 57EAD632FB9 for ; Thu, 8 Apr 2010 11:54:09 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 38063-06 for ; Thu, 8 Apr 2010 14:53:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 194CC63346C for ; Thu, 8 Apr 2010 11:53:57 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Thu, 08 Apr 2010 09:53:55 -0500 Message-Id: <4BBDA7AC0200002500030589@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Thu, 08 Apr 2010 09:53:48 -0500 From: "Kevin Grittner" To: "=?ISO-8859-15?Q?Eduardo=20S=E1=20dos=20Reis?=" , Cc: Subject: Re: How to block access to a scheme References: <1A57E5A7-AEB8-412B-B3A7-D52768F2FCF7@geysirit.dk> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201004/88 X-Sequence-Number: 34182 Eduardo Sá dos Reis 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