Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 1C6456324CA for ; Wed, 5 Aug 2009 16:51:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 65966-01 for ; Wed, 5 Aug 2009 19:51:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f220.google.com (mail-fx0-f220.google.com [209.85.220.220]) by mail.postgresql.org (Postfix) with ESMTP id 17B77633AF9 for ; Wed, 5 Aug 2009 16:51:25 -0300 (ADT) Received: by fxm20 with SMTP id 20so339344fxm.24 for ; Wed, 05 Aug 2009 12:51:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=y89vJoc94dksbCWRe20qT9vPNZSlrrNuG2n0/sTahBw=; b=N//4B8/1Vi2LILyX+Twmt2Fp7aupx+3uHU0i3tXi6etNYAC2KfnVcTdirY40ZOWy+e 9Aept0JjXigPTi6EeIehlAdeZkqZm8/K34OR6bI1lT1NQCRm7s73QFvhSbl1PcDQlVog 9ehMLOEwRgtlaQZ5hLbxpyQUdlyFGTk+QFAhY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=dNYc7z3+XzIz4pwVT04+/JJllS9icSGqOz016T8PuMpGtUrB/emO9gQ7xXDJj4m3jh Hev06gh7ruJ08YdCEGkkOxgH6NGzPdIqFtk8wwzhsyUNEhr0TZjGNhrE7GGk+uHXnxqH o3QwP9wKLZwAC6SuatNc1oKsjyU75xjbkpKUE= MIME-Version: 1.0 Received: by 10.223.112.6 with SMTP id u6mr564953fap.30.1249501884504; Wed, 05 Aug 2009 12:51:24 -0700 (PDT) In-Reply-To: <28123.1249501226@sss.pgh.pa.us> References: <4A37BF63.50008@pjmodos.net> <4A38A956.8080600@pjmodos.net> <4A4DE104.8090605@pjmodos.net> <4A6059B4.5010004@pjmodos.net> <4A607997.3030305@pjmodos.net> <21542.1249492707@sss.pgh.pa.us> <4A79D60D.1090900@agliodbs.com> <603c8f070908051221u676e9d68ya42f5099aafb2e8e@mail.gmail.com> <28123.1249501226@sss.pgh.pa.us> Date: Wed, 5 Aug 2009 15:51:24 -0400 Message-ID: <603c8f070908051251j5672e2dg67a46c5ab43f67f3@mail.gmail.com> Subject: Re: GRANT ON ALL IN schema From: Robert Haas To: Tom Lane Cc: Josh Berkus , Petr Jelinek , PostgreSQL-development Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.333 tagged_above=-10 required=5 tests=AWL=1.266, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200908/357 X-Sequence-Number: 143000 On Wed, Aug 5, 2009 at 3:40 PM, Tom Lane wrote: > Robert Haas writes: >> I have one database that is set up with a reporting user (read only on >> everything). =A0It requires constant maintenance. =A0Every time an objec= t >> is added or deleted (or dropped and recreated, like a view, which I do >> ALL THE TIME to work around the inability to add/remove columns) the >> permissions get shot to hell. =A0I finally crontabbed a script that >> fixes it every 20 minutes. =A0I had another database where I tried to do >> some real permission separation and it was just a huge pain in the >> ass. > >> Grant on all isn't gonna fix these problems completely, but it's a >> start. =A0The DefaultACL stuff is another important step in the right >> direction. > > Seems like default ACLs, not grant-on-all, is what you want for that. Well, that helps with the maintenance, but you also have to set it up initially. There were already 100+ objects in the schema at the time the reporting user was created. ...Robert