Skip site navigation (1) Skip section navigation (2)

Re: Upgrading to 8.2, changes in user/group management scripts

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Peter Koczan <pjkoczan(at)gmail(dot)com>
Cc: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Upgrading to 8.2, changes in user/group management scripts
Date: 2007-01-22 22:35:57
Message-ID: 20070122223557.GV26006@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-admin
Peter Koczan wrote:
> The main thing I'm worried about is the orphaned objects problem. It's not
> adding users so much as removing them that I'm concerned about (I work at a
> University and we remove inactive/non-enrolled users). These cases would
> likely require a lot more in-depth intervention by myself and other staff.

Instead of deleting stuff from pg_authid directly, use DROP ROLE.
If this doesn't work because the role owns something, you may use a
combination of DROP OWNED and REASSIGN OWNED.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

pgsql-admin by date

Next:From: IannspDate: 2007-01-23 04:25:58
Subject: Re: Function with Array
Previous:From: Stephen FrostDate: 2007-01-22 22:09:54
Subject: Re: Upgrading to 8.2, changes in user/group management scripts

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group