Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 595F8632579 for ; Mon, 10 Aug 2009 18:13: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 60930-06 for ; Mon, 10 Aug 2009 21:13:05 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail136128.authsmtp.com (outmail136128.authsmtp.com [62.13.136.128]) by mail.postgresql.org (Postfix) with ESMTP id DF0196322BA for ; Mon, 10 Aug 2009 18:13:05 -0300 (ADT) Received: from mail-c187.authsmtp.com (mail-c187.authsmtp.com [62.13.128.33]) by punt9.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n7ALCqAG009092; Mon, 10 Aug 2009 22:12:52 +0100 (BST) Received: from Sidney-Stratton.local (dsl081-245-111.sfo1.dsl.speakeasy.net [64.81.245.111]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n7ALCk9i042366; Mon, 10 Aug 2009 22:12:47 +0100 (BST) Message-ID: <4A808D44.7010600@agliodbs.com> Date: Mon, 10 Aug 2009 14:12:36 -0700 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: Heikki Linnakangas CC: Tom Lane , Andrew Dunstan , Kevin Grittner , Peter Eisentraut , pgsql-hackers@postgresql.org, Nikhil Sontakke , Robert Haas , Petr Jelinek , Stephen Frost Subject: Re: GRANT ON ALL IN schema References: <4A37BF63.50008@pjmodos.net> <603c8f070908050951s3e5df452se4c610f01b80bb7d@mail.gmail.com> <21246.1249491592@sss.pgh.pa.us> <200908101042.35024.peter_e@gmx.net> <4A7FE7F902000025000296E3@gw.wicourts.gov> <4A803A89.9020509@dunslane.net> <3285.1249918596@sss.pgh.pa.us> <4A808A6C.9060602@enterprisedb.com> In-Reply-To: <4A808A6C.9060602@enterprisedb.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Server-Quench: 8f1c6c26-85f2-11de-8e8d-001185d377ca X-AuthRoute: OCdyZgscClZXSx8a IioLCC5HRQ8+YBZL BAkGMA9GIUINWEQI agdMdwIUGUATAgsB A28bWVZeUV97XWo7 bQ5PZQRDYE5LQQRr UVdLR1BXCwUmXxtw em1FW0BycwdFfng+ ZEFgXD5TCkUpcxV/ RFNcEDsEeGZhPDUC WBVQIx5UcAJLdhoR aVd4ByJDAzANdhEY NiQQEgoKCH1wEg1z fkkqCxo7ZWJDPxh0 XBsCEDAmdV91 X-Authentic-SMTP: 61633136333939.squirrel.dmpriest.net.uk:1849/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse 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: 200908/852 X-Sequence-Number: 143495 > Something like > DO $$ begin ...; end $$; > > gives 90% of the usability with 10% of the trouble. I'd be a big fan of this. Especially if we could at an \e for it in psql. \ec? I'm not agreeing, though, that we don't need a GRANT ALL/ALTER DEFAULT. We still need that for the simplest cases so that novice-level users will use *some* access control. But it would mean that we wouldn't need GRANT ALL/ALTER DEFAULT to support anything other than the simplest cases. -- Josh Berkus PostgreSQL Experts Inc. www.pgexperts.com