pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: R D <mrk279@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: GRANT odd behaviour - Bug or feature?
Date: Fri, 19 Jan 2001 00:14:07 -0800 (PST)
Message-ID: <20010119081407.15152.qmail@web10001.mail.yahoo.com> (raw)

Hi,
I discivered some strange behaviour in GRANT. When I
CREATE a table and GRANT some privilege to some user
this privilege is REVOKEd from me ?!? So I have to
GRANT the same to me afterwards. Once I have GRANTed
this privilege to myself I can GRANT it to whoever I
want without REVOKE-ing it from me. Really strange.
Here is some code for ilustration :

1)  CREATE TABLE test(.......);
2)  GRANT SELECT ON test TO user1;
3)  SELECT * FROM test;      -- permission denied.
4)  INSERT INTO test values(.....);  -- OK!
5)  GRANT SELECT ON test TO myself;
6)  SELECT * FROM test; -- OK!
7)  GRANT SELECT ON test TO user2;
8)  SELECT * FROM test; -- OK!

Is this a bug or feature :) ? I think this is a bug.

btw. there is one more strange thing i discovered with
inexes:
Asume we have a table with two indexes (index1 and
index2). When I cluster a table with index1 - index2
disappears and i have to create it again. 
I know that there could be a reasonable explanation -
table reorder and etc... Is it normal?

regards,
Rumen

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



view thread (4+ messages)  latest in thread

Message-ID: <20010119081407.15152.qmail@web10001.mail.yahoo.com>
Permalink:  ../20010119081407.15152.qmail@web10001.mail.yahoo.com/
Also on:    postgresql.org/message-id/20010119081407.15152.qmail@web10001.mail.yahoo.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: mrk279@yahoo.com
  Subject: Re: GRANT odd behaviour - Bug or feature?
  In-Reply-To: <20010119081407.15152.qmail@web10001.mail.yahoo.com>
  References: <20010119081407.15152.qmail@web10001.mail.yahoo.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