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

Re: Upgrading from < 8.1 with users and groups with same name

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martin Pitt <martin(at)piware(dot)de>
Cc: PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Upgrading from < 8.1 with users and groups with same name
Date: 2005-12-30 03:20:13
Message-ID: 7808.1135912813@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
Martin Pitt <martin(at)piware(dot)de> writes:
> I recently got a rather interesting Debian bug [1]: When upgrading a
> pre-8.1 database to 8.1, the upgrade messes up permissions if the old
> database had users and groups with the same name. Since in 8.1 they
> get collapsed to a 'role' there will be a name clash.

I think the only real problem here is that the role ends up with
NOLOGIN set, which we could probably fix by reordering the commands;
but of course we can't do anything about dumps made with existing
versions of pg_dump.

> My current solution checks for this situation and aborts the upgrade

That seems like serious overkill.

			regards, tom lane

In response to

Responses

pgsql-bugs by date

Next:From: Robert OsowieckiDate: 2005-12-30 09:43:52
Subject: BUG #2136: plperl doesn't work, plperlu - yes
Previous:From: Bruce MomjianDate: 2005-12-30 01:06:04
Subject: Re: Upgrading from < 8.1 with users and groups with same name

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