Received: from maia.hub.org (maia-1.hub.org [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 0C0D5636249 for ; Fri, 7 May 2010 20:47:45 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 16652-06-5 for ; Fri, 7 May 2010 23:47:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from qmta15.westchester.pa.mail.comcast.net (qmta15.westchester.pa.mail.comcast.net [76.96.59.228]) by mail.postgresql.org (Postfix) with ESMTP id 235B963627C for ; Fri, 7 May 2010 20:47:33 -0300 (ADT) Received: from omta14.westchester.pa.mail.comcast.net ([76.96.62.60]) by qmta15.westchester.pa.mail.comcast.net with comcast id EaPr1e0061HzFnQ5FnnWpz; Fri, 07 May 2010 23:47:30 +0000 Received: from sz0093.wc.mail.comcast.net ([76.96.58.151]) by omta14.westchester.pa.mail.comcast.net with comcast id EnnW1e0083FmDic3annWRD; Fri, 07 May 2010 23:47:30 +0000 Date: Fri, 7 May 2010 23:47:29 +0000 (UTC) From: Lou Picciano To: pgsql-testers Message-ID: <298939598.7519881273276049285.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> In-Reply-To: <1052582201.7519391273275948891.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> Subject: ERROR: cannot drop objects owned by role postgres because they are required by the database system MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_387539_75276183.1273276049284" 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.791 tagged_above=-10 required=5 tests=BAYES_50=0.8, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/25 X-Sequence-Number: 108 ------=_Part_387539_75276183.1273276049284 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit [TEST REPORT] [Release]: 9.0beta1 [Test Type]: psql CLI [Test]: Trying to perform basic change ownership operations using psql; percursor to dropping the postgres role. [Platform]: Solaris SPARC 4u (E450) [Parameters]: Objective: replace postgres user with 'admin', then drop 'postgres'. First, trying to change ownerships of system objects... postgres=# ALTER ROLE admin CREATEDB CREATEROLE LOGIN ENCRYPTED PASSWORD ''; postgres=# REASSIGN OWNED BY postgres TO admin; - ERROR: cannot drop objects owned by role postgres because they are required by the database system postgres=# ALTER DATABASE postgres OWNER TO admin; postgres=# REASSIGN OWNED BY postgres TO admin; - ERROR: cannot drop objects owned by role postgres because they are required by the database system postgres=# \c postgres admin - You are now connected to database "postgres" as user "admin". postgres=# DROP role postgres; - ERROR: cannot drop role postgres because it is required by the database system (Makes sense!) postgres=# REASSIGN OWNED BY postgres TO admin; - ERROR: cannot drop objects owned by role postgres because they are required by the database system [Failure]: Dunno? [Results]: postgres=# REASSIGN OWNED BY postgres TO admin; - ERROR: cannot drop objects owned by role postgres because they are required by the database system [Comments]: Should we be able to get rid of the postgres user 'elegantly'? Is there a way to REASSIGN without DROPping? Perhaps new design precludes this? Documentation opportunity? ------=_Part_387539_75276183.1273276049284 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <= div style=3D'font-family: Verdana; font-size: 12pt; color: #000000'>
<= span class=3D"Apple-style-span" style=3D"font-family: sans-serif; font-size= : 13px; line-height: 19px; ">

[TEST = REPORT]

[Release]: = 9.0beta1

[Test Type]: p= sql CLI

[Test]: Trying = to perform basic change ownership operations using psql; percursor to dropp= ing the postgres role.

[Platform= ]: Solaris SPARC 4u (E450)

[Parameters]: Objective:  replace postgres user with 'adm= in', then drop 'postgres'.  First, trying to change ownerships of syst= em objects...

postgres=3D# ALTER ROLE admin CREATEDB CR= EATEROLE LOGIN ENCRYPTED PASSWORD '<pword>';

=

postgres=3D# REASSIGN OWNED BY postgres TO admin;

- ERROR:  cannot drop objects owned by role postgres becau= se they are required by the database system

postgres=3D= # ALTER DATABASE postgres OWNER TO admin;

postgres=3D# REASSIGN OWNED BY postgres TO admin;

- ERROR:  cannot drop objects owned by role postgres because they = are required by the database system

- You are now connected to d= atabase "postgres" as user "admin".

postgres=3D# DROP r= ole postgres;

- ERROR:  cannot drop role postgres = because it is required by the database system  (Makes sense!)

postgres=3D# REASSIGN OWNED BY postgres TO admin;

- ERROR:  cannot drop objects owned by role postgres because = they are required by the database system


[Failure]: Dunno? 

[Results]: 

postgres=3D# REASSIGN OWN= ED BY postgres TO admin;

- ERROR:  cannot drop obj= ects owned by role postgres because they are required by the database syste= m

[Comments]: Sh= ould we be able to get rid of the postgres user 'elegantly'?  Is there= a way to REASSIGN without DROPping?  Perhaps new design precludes thi= s?  Documentation opportunity?

------=_Part_387539_75276183.1273276049284--