X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 125C052BC2 for ; Wed, 17 Aug 2005 12:35:13 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 24892-06 for ; Wed, 17 Aug 2005 15:35:07 +0000 (GMT) Received: from hermes.cbasys.net (hermes.cbasys.net [67.43.167.178]) by svr1.postgresql.org (Postfix) with ESMTP id B89F252B9D for ; Wed, 17 Aug 2005 12:35:06 -0300 (ADT) Received: from [192.168.0.108] (unknown [63.170.247.153]) by hermes.cbasys.net (Postfix) with ESMTP id 6C3C9E0085DE for ; Wed, 17 Aug 2005 08:35:06 -0700 (PDT) Message-ID: <4303592A.4070501@cbamedia.com> Date: Wed, 17 Aug 2005 08:35:06 -0700 From: Andrew Gold User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Debian/1.7.8-1 X-Accept-Language: en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: GRANT ALL PRIVILEGES ON DATABASE References: <430271C8.8030909@cbamedia.com> <1124236833.12095.101.camel@linda> In-Reply-To: <1124236833.12095.101.camel@linda> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=-3.596 required=5 tests=[AWL=0.704, RCVD_IN_BSP_TRUSTED=-4.3] X-Spam-Level: X-Archive-Number: 200508/219 X-Sequence-Number: 18538 Actually, I read the GRANT man page several times; what you state so clearly and simply, isn't described so plainly in that document. I posted because I found the GRANT man page deficient. Strictly speaking the GRANT man page indicated the following: -----------------begin quote--------------------------- ALL PRIVILEGES Grant all of the privileges applicable to the object at once. The PRIVILEGES key word is optional in PostgreSQL, though it is required by strict SQL. -------------------end quote--------------------------- This followed a series of descriptions of various privileges (select, insert, update, etc.). From the context of the description, it appears that "GRANT ALL PRIVILEGES" bestows all of the preceding rights on the recipient user. It is not at all intuitive that "GRANT ALL PRIVILEGES" gives a user the right to create schemas and temporary tables, and that alone. Whether you meant it or not, your initial comment came across as patronizing. Andrew Gold Oliver Elphick wrote: >On Tue, 2005-08-16 at 16:07 -0700, Andrew Gold wrote: > > >>Obviously, I can write a script to iterate through all the tables, but >>what exactly does "GRANT ALL PRIVILEGES ON DATABASE XXX" do if it >>doesn't even grant basic access? >> >> > >See the man page for GRANT. > >It gives the right to create schemas and temporary tables in the >database. > > >