From: Andrew Gold <agold@cbamedia.com>
To: pgsql-admin@postgresql.org
Subject: GRANT ALL PRIVILEGES ON DATABASE
Date: Tue, 16 Aug 2005 16:17:33 -0700
Message-ID: <4302740D.1020808@cbamedia.com> (raw)
Hi everyone,
I'm sure there's an easy answer for this question, but I confess the
situation puzzles me.
I have database "example1."
I have example1 owner user "user1."
user1 is not a super user.
I have superuser "su1."
su1 creates table "lookatme" in example1. su1 now realizes that he wants
to give control of table lookatme and a number of other tables (all of
them) to user1, so he executes the following sql:
GRANT ALL PRIVILEGES ON DATABASE example1 TO user1.
user1 now executes the following sql:
SELECT * FROM lookatme;
The response is: ERROR: permission denied for relation lookatme
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?
Any insight on the subject is welcome.
Thanks,
Andrew Gold
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: <4302740D.1020808@cbamedia.com>
References: <4302740D.1020808@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