From: Andrew Gold <agold@cbamedia.com>
To: pgsql-admin@postgresql.org
Subject: Re: GRANT ALL PRIVILEGES ON DATABASE
Date: Wed, 17 Aug 2005 08:35:06 -0700
Message-ID: <4303592A.4070501@cbamedia.com> (raw)
In-Reply-To: <1124236833.12095.101.camel@linda>
References: <430271C8.8030909@cbamedia.com>
<1124236833.12095.101.camel@linda>
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.
>
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: agold@cbamedia.com
Subject: Re: GRANT ALL PRIVILEGES ON DATABASE
In-Reply-To: <4303592A.4070501@cbamedia.com>
References: <430271C8.8030909@cbamedia.com> <1124236833.12095.101.camel@linda> <4303592A.4070501@cbamedia.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox