From: Alvaro Herrera <alvherre@commandprompt.com>
To: Peter Koczan <pjkoczan@gmail.com>
Cc: Jim C. Nasby <jim@nasby.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Upgrading to 8.2, changes in user/group management scripts
Date: Mon, 22 Jan 2007 19:35:57 -0300
Message-ID: <20070122223557.GV26006@alvh.no-ip.org> (raw)
In-Reply-To: <4544e0330701221236o205ec223t7da292a1cce6bba3@mail.gmail.com>
References: <4544e0330701191345l64b72722j7530db0d7d345f6f@mail.gmail.com>
<20070121173854.GD77382@nasby.net>
<4544e0330701221236o205ec223t7da292a1cce6bba3@mail.gmail.com>
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
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-admin@postgresql.org
Cc: alvherre@commandprompt.com, pjkoczan@gmail.com, jim@nasby.net
Subject: Re: Upgrading to 8.2, changes in user/group management scripts
In-Reply-To: <20070122223557.GV26006@alvh.no-ip.org>
References: <4544e0330701191345l64b72722j7530db0d7d345f6f@mail.gmail.com> <20070121173854.GD77382@nasby.net> <4544e0330701221236o205ec223t7da292a1cce6bba3@mail.gmail.com> <20070122223557.GV26006@alvh.no-ip.org>
* 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