pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gold <agold@cbamedia.com>
To: pgsql-admin@postgresql.org
Subject: GRANT ALL PRIVILEGES ON DATABASE
Date: Tue, 16 Aug 2005 16:07:52 -0700
Message-ID: <430271C8.8030909@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



view thread (12+ messages)  latest in thread

Message-ID: <430271C8.8030909@cbamedia.com>
Permalink:  ../430271C8.8030909@cbamedia.com/
Also on:    postgresql.org/message-id/430271C8.8030909@cbamedia.com

 · 

reply

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: <430271C8.8030909@cbamedia.com>
  References: <430271C8.8030909@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