Received: from maia.hub.org (maia-4.hub.org [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id E3468632417 for ; Tue, 11 May 2010 17:41:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 10223-05 for ; Tue, 11 May 2010 20:41:01 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from qmta10.westchester.pa.mail.comcast.net (qmta10.westchester.pa.mail.comcast.net [76.96.62.17]) by mail.postgresql.org (Postfix) with ESMTP id 7BFD96323D0 for ; Tue, 11 May 2010 17:41:01 -0300 (ADT) Received: from omta12.westchester.pa.mail.comcast.net ([76.96.62.44]) by qmta10.westchester.pa.mail.comcast.net with comcast id GAC51e0020xGWP85ALh14z; Tue, 11 May 2010 20:41:01 +0000 Received: from sz0093.wc.mail.comcast.net ([76.96.58.151]) by omta12.westchester.pa.mail.comcast.net with comcast id GLh01e00R3FmDic3YLh0mL; Tue, 11 May 2010 20:41:01 +0000 Date: Tue, 11 May 2010 20:41:00 +0000 (UTC) From: Lou Picciano To: pgsql-testers Message-ID: <1987554247.9039561273610460655.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> In-Reply-To: <1629157591.9037451273610224266.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> Subject: testing simple SELECT commands on newly-created databases. Apparently blocked by (lack of) privileges? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_465239_852397945.1273610460654" X-Originating-IP: [76.117.184.231] X-Mailer: Zimbra 5.0.19_GA_3172.RHEL5_64 (ZimbraWebClient - SAF3 (Mac)/5.0.19_GA_3177.RHEL5_64) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.01 tagged_above=-10 required=5 tests=BAYES_40=-0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/26 X-Sequence-Number: 109 ------=_Part_465239_852397945.1273610460654 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit [TEST REPORT] [Release]: 9.0Beta1 [Test Type]: Privileges assignment on new database. [Test]: testing simple SELECT commands on newly-created databases. Apparently blocked by (lack of) privileges? [Platform]: Solaris 10 SPARC Enterprise 450 Quad [Parameters]: [Failure]: Don't know. Is this a (new) default behavior? [Results]: on a newly-installed cluster, 1) create a new SUPERUSER 'admin', with all the bells and whistles. 2) CREATE a new database 'test', including several tables, with owner 'admin' in PUBLIC. 3) psql \dt command verifies owner 'admin' for all tables 4) psql \dp command shows NO Access privileges listed. OK? 5) INSERT data into (test)table1. WORKS. 6) CREATE new user "Mr. User" LOGIN, etc. 7) GRANT ALL ON DATABASE test TO "Mr. User"; 8) SELECT * FROM table1; --------------- ERROR: permission denied for relation table1 9) GRANT ALL ON TABLE table1 TO "Mr. User"; 10) SELECT * FROM table1; --------------- WORKS [Comments]: Is this consistent behavior? Is it necessary to explicitly grant privileges to each object in a database? We are aware of the new ALTER DEFAULT PRIVILEGES command, but, per docs, it only affects tables (including views), sequences, and functions , correct? IE, it cannot affect database privileges. ------=_Part_465239_852397945.1273610460654 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <= div style=3D'font-family: Verdana; font-size: 12pt; color: #000000'>

[TEST REPORT]

[R= elease]: 9.0Beta1

[Test= Type]: Privileges assignment on new database.

[Test]: testing simple SELECT commands on = newly-created databases.  Apparently blocked by (lack of) privileges?<= /p>

[Platform]: Solaris 10 = SPARC Enterprise 450 Quad

[Param= eters]:

[Failure]: = Don't know.  Is this a (new) default behavior?

[Results]: on a newly-installed cluster,

1) create a new SUPERUSER 'admin', with = all the bells and whistles.

2) CREA= TE a new database 'test', including several tables, with owner 'admin' in P= UBLIC.

3) psql \dt command verifies= owner 'admin' for all tables

4) ps= ql \dp command shows NO Access privileges listed.  OK?

5) INSERT data into (test)table1.  WORKS.

=

6) CREATE new user "Mr. User" LOGIN, e= tc.

7) GRANT ALL ON DATABASE test T= O "Mr. User";

8) SELECT * FROM tabl= e1; --------------- ERROR:  permission denied for relation table1=

9) GRANT ALL ON TABLE table1 T= O "Mr. User";

10) SELECT * FROM= table1;   ---------------  WORKS


[Comments]: Is this consisten= t behavior?  Is it necessary to explicitly grant privileges to each ob= ject in a database?  

We are a= ware of the new ALTER DEFAULT PRIVILEGES command, but, per docs, it only af= fects tables (including views), sequences,= and functions, correct?  
IE, it cannot affect database pri= vileges.

------=_Part_465239_852397945.1273610460654--