Received: from web10001.mail.yahoo.com (web10001.mail.yahoo.com [216.136.130.37]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f0J8E9084688 for ; Fri, 19 Jan 2001 03:14:09 -0500 (EST) (envelope-from mrk279@yahoo.com) Message-ID: <20010119081407.15152.qmail@web10001.mail.yahoo.com> Received: from [212.95.170.191] by web10001.mail.yahoo.com; Fri, 19 Jan 2001 00:14:07 PST Date: Fri, 19 Jan 2001 00:14:07 -0800 (PST) From: R D Subject: GRANT odd behaviour - Bug or feature? To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200101/126 X-Sequence-Number: 503 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/