From: | "Andrus" <kobruleht2(at)hot(dot)ee> |
---|---|
To: | "Melvin Davidson" <melvin6925(at)gmail(dot)com> |
Cc: | "Adrian Klaver" <adrian(dot)klaver(at)aklaver(dot)com>, "Thom Brown" <thom(at)linux(dot)com>, "pgsql-general" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: How to drop user if objects depend on it |
Date: | 2015-10-07 15:11:47 |
Message-ID: | BA4E670D8DF2441094B23737A03528E5@dell2 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi!
>No. You need to be a superuser to reassign objects unless you own the
>object.
>1. first connect as user postgres
>2. REASSIGN all the tables owned by the missing user first.
>3. Then you can drop the missing user AFTER you have reassigned all the
>objects they own.
Script
reassign owned by farukkugay to postgres;
drop user farukkugay ;
is running by superuser but it still causes the error.
>You must also be a superuser to drop roles.
Non-superuser creates roles, assigns rights and drop users using scripts
which I provided.
Those scripts work OK on most cases.
For some users, vantaa and farukkugan delete script causes error which I
described. For farukkugan it occurs also if running under superuser.
So it looks like it should be possible for non-superusers also.
Andrus.
From | Date | Subject | |
---|---|---|---|
Next Message | Karsten Hilbert | 2015-10-07 15:34:39 | Re: md5(large_object_id) |
Previous Message | Gilberto Castillo | 2015-10-07 15:02:26 | Re: [MASSMAIL]ayuda con funcion List |