how drop a role that owns stuff ?

From: Andreas <maps(dot)on(at)gmx(dot)net>
To: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: how drop a role that owns stuff ?
Date: 2009-07-13 01:01:56
Message-ID: 4A5A8784.2010002@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
for some cleaning up I'd like to drop a certain role.
Now DROP ROLE yields an error and complains about 271 objects being
owned by this role.

Is there an easy way to switch ownership of those objects to another role?

At least, is there a way to store those dependencies as a file?
The contents of the 4th tab of the role-object in pgAdmin would be nice
but I cant save it or copy it out.
It lists which objects depend on the role.

regards ...

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2009-07-13 01:04:56 Re: how drop a role that owns stuff ?
Previous Message Greg Stark 2009-07-12 23:53:49 Re: How can I find out the space used on disk for a table/index