X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 48C06D1DB9F for ; Wed, 10 Mar 2004 05:48:07 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 70577-01 for ; Wed, 10 Mar 2004 01:48:05 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 46E7ED1DB9D for ; Wed, 10 Mar 2004 01:48:04 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i2A5lx9d002834; Wed, 10 Mar 2004 00:48:00 -0500 (EST) To: Bruce Momjian Cc: Hadley Willan , PGSQL Admin Subject: Re: Restricting Groups / Users In-reply-to: <200403100252.i2A2q2s07085@candle.pha.pa.us> References: <200403100252.i2A2q2s07085@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Tue, 09 Mar 2004 21:52:02 -0500" Date: Wed, 10 Mar 2004 00:47:59 -0500 Message-ID: <2833.1078897679@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/178 X-Sequence-Number: 12747 Bruce Momjian writes: > Hadley Willan wrote: >> I'm running pgsql 7.4.1 and I was wondering if it is possible to >> restrict users from creating tables. > Yes, you can control permissions on the public schema and the other > schemas. Specifically, revoke their CREATE rights on public (as well as any other schemas you've created) and revoke their CREATE rights on the database so they can't create any new schemas to create tables in. If you are feeling draconian enough to want to prohibit creation of temp tables as well as regular tables, then also remove TEMP rights at the database level. I'm dubious about the usefulness of this though. regards, tom lane