Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 4EA28632CE1 for ; Mon, 10 Aug 2009 18:00:46 -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 18811-06 for ; Mon, 10 Aug 2009 21:00:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og103.obsmtp.com (exprod7og103.obsmtp.com [64.18.2.159]) by mail.postgresql.org (Postfix) with SMTP id DB1C963356E for ; Mon, 10 Aug 2009 18:00:34 -0300 (ADT) Received: from source ([74.125.78.26]) by exprod7ob103.postini.com ([64.18.6.12]) with SMTP ID DSNKSoCKb5D/YnV2gqYR2+4I4L+Lw8k2yGnh@postini.com; Mon, 10 Aug 2009 14:00:34 PDT Received: by ey-out-2122.google.com with SMTP id 9so814193eyd.27 for ; Mon, 10 Aug 2009 14:00:31 -0700 (PDT) Received: by 10.210.51.10 with SMTP id y10mr3371266eby.4.1249938031119; Mon, 10 Aug 2009 14:00:31 -0700 (PDT) Received: from ?192.168.1.117? (dsl-hkibrasgw2-ff67c300-165.dhcp.inet.fi [88.195.103.165]) by mx.google.com with ESMTPS id 24sm12465007eyx.43.2009.08.10.14.00.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 10 Aug 2009 14:00:30 -0700 (PDT) Message-ID: <4A808A6C.9060602@enterprisedb.com> Date: Tue, 11 Aug 2009 00:00:28 +0300 From: Heikki Linnakangas Organization: EnterpriseDB User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: Tom Lane CC: 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> In-Reply-To: <3285.1249918596@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.85 tagged_above=-10 required=5 tests=AWL=0.749, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200908/848 X-Sequence-Number: 143491 Tom Lane wrote: > Andrew Dunstan writes: >> But to make it really nice you'd have to move away from pl programs as >> strings. That would be a lot more work, and you really wouldn't want to >> make it work with more than one PL for the sake of everyone's sanity. You mean something like: postgres=# begin ... end; ? > That would be an awful lot of messiness to save four keystrokes... I second that. We support that in EDB for Oracle compatibility, and it's a pain the ass. You need to call the PL/pgSQL parser on the query string just to figure out where it ends. And worse, psql needs to know about it too, so you need a minimal version of the PL/pgSQL parser in the client too. Something like DO $$ begin ...; end $$; gives 90% of the usability with 10% of the trouble. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com