Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id F0079634482 for ; Mon, 30 Nov 2009 10:51:52 -0400 (AST) 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 31925-07-3 for ; Mon, 30 Nov 2009 14:51:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from serv01.siteground178.com (ns1.siteground178.com [67.15.255.19]) by mail.postgresql.org (Postfix) with ESMTP id 93555633C87 for ; Mon, 30 Nov 2009 10:50:29 -0400 (AST) Received: from [67.15.255.19] (port=55923 helo=intermodalsoftwaresolutions.net) by serv01.siteground178.com with esmtpa (Exim 4.69) (envelope-from ) id 1NF7a8-0002sa-0l for pgsql-sql@postgresql.org; Mon, 30 Nov 2009 08:50:28 -0600 Received: from phpmailer ([76.106.235.204]) by intermodalsoftwaresolutions.net with HTTP (PHPMailer); Mon, 30 Nov 2009 08:50:27 -0600 Date: Mon, 30 Nov 2009 08:50:27 -0600 Cc: pgsql-sql@postgresql.org From: Michael Gould Subject: Schema's, roles and privileges Message-ID: <803af4645647a59bcb56badac2b1cd8f@intermodalsoftwaresolutions.net> X-Priority: 3 X-Mailer: PHPMailer [version 1.71] X-Mailer: FeLaMiMail In-Reply-To: <4B1389AE.2060305@postnewspapers.com.au> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - serv01.siteground178.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - intermodalsoftwaresolutions.net X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.293 tagged_above=-10 required=5 tests=BAYES_50=0.001, MISSING_HEADERS=1.292 X-Spam-Level: * X-Archive-Number: 200911/80 X-Sequence-Number: 33431 I have a database with a schema called ISS. This is where all of our application definitions are stored. We did add 2 contribute modules = (citext) and guid generator and both of these by default went to the public schema. It is our intent to not allow any access to public by our users. A few questions 1. Can I reinstall the contrib modules in the ISS schema only or do they need to be in the public schema 2. If they need to stay in the public schema and I don't want to give any insert, update, delete or select access to public, can I revoke those privileges and just give execute on the functions that were added by the contrib module. 3. If I can reinstall the contrib modules in the application schema, can I delete the public schema or does it still need to be there and I would = just revoke all except for the superuser id which would be for our installer or tech support if needed. We have a separate userid for the security administrator. All of the functions that the security administrator needs are provided by a application module and they will not be directly = accessing the database via a SQL utility at all. Best Regards -- Michael Gould, Managing Partner Intermodal Software Solutions, LLC 904.226.0978 904.592.5250 fax