pg.ddx.io  pgsql-testers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lou Picciano <loupicciano@comcast.net>
To: pgsql-testers <pgsql-testers@postgresql.org>
Subject: ERROR:  cannot drop objects owned by role postgres because they are required by the database system
Date: Fri, 7 May 2010 23:47:29 +0000 (UTC)
Message-ID: <298939598.7519881273276049285.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> (raw)
In-Reply-To: <1052582201.7519391273275948891.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net>






[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 '<pword>'; 



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? 

Message-ID: <298939598.7519881273276049285.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net>
Permalink:  ../298939598.7519881273276049285.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net/
Also on:    postgresql.org/message-id/298939598.7519881273276049285.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net

 · 

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-testers@postgresql.org
  Cc: loupicciano@comcast.net
  Subject: Re: ERROR:  cannot drop objects owned by role postgres because they are required by the database system
  In-Reply-To: <298939598.7519881273276049285.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net>
  References: <1052582201.7519391273275948891.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> <298939598.7519881273276049285.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net>

* 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