From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: 8.0 -> 8.1 migration issue with ROLEs ... maybe? |
Date: | 2005-11-24 00:05:26 |
Message-ID: | 5333.1132790726@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
"Marc G. Fournier" <scrappy(at)postgresql(dot)org> writes:
> template1=# create user a_test_group in group a_test_group;
> ERROR: role "a_test_group" already exists
> So, if I have a group that happens to have a userid matching it, in the
> old system, its going to fail to load?
Groups and users are the same thing now, so the above isn't unexpected.
I think though that if you just ignore the error, it'll still work the
way you want --- the same role can serve as both a user and a group.
If the script tries to create the group first, you might need
ALTER USER a_test_group LOGIN;
to enable the role to login as a user.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2005-11-24 01:24:06 | Re: MS SQL Server compatibility functions |
Previous Message | Marc G. Fournier | 2005-11-23 22:48:24 | 8.0 -> 8.1 migration issue with ROLEs ... maybe? |