Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id CC9B46863C3 for ; Sat, 26 Jun 2010 07:45:13 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 90945-05 for ; Sat, 26 Jun 2010 10:45:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id E7369634567 for ; Sat, 26 Jun 2010 07:45:06 -0300 (ADT) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OSSsh-0001Kr-H3 for pgsql-docs@postgresql.org; Sat, 26 Jun 2010 12:45:03 +0200 Received: from cpc3-cmbg10-0-0-cust455.cmbg.cable.ntl.com ([81.102.141.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Jun 2010 12:45:03 +0200 Received: from matthew by cpc3-cmbg10-0-0-cust455.cmbg.cable.ntl.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Jun 2010 12:45:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-docs@postgresql.org From: Matthew Woodcraft Subject: Views and Privileges Date: Sat, 26 Jun 2010 11:11:06 +0100 Lines: 15 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpc3-cmbg10-0-0-cust455.cmbg.cable.ntl.com User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.9) Gecko/20100515 Icedove/3.0.4 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.011 tagged_above=-5 required=5 tests=BAYES_40=-0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/80 X-Sequence-Number: 5648 The fact that views run with the privileges of the view owner is a bit hidden in the documentation. It isn't mentioned in /3.2 Views/, which makes sense as privileges haven't been introduced yet. It is explained in /37.4 Rules and Privileges/, but I think most people using views won't have reason to read the docs on rules. I can't find any other reference to it. How about having a section under /20. Database Roles and Privileges/ on views and privileges? -M-