Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't delete user

Status
Not open for further replies.

ajpierson

IS-IT--Management
Jul 18, 2005
2
US
I am having some problems with managing users in postgreSQL 8.0.1. I have a user that was set up with privilages to create users and databases. When I try to connect to a database (or do anything) with this user I get the following error:

psql: FATAL: user "adam" does not exist.

If I try to create the user adam again I get the following error:

createuser: creation of new user failed: ERROR: user "adam" already exists.

If I try to delete the user I get:

dropuser: removal of user "adam" failed: ERROR: user "adam" does not exist.

I have also tried by using the SQL commands DROP USER and CREATE USER, with similar results. Is there some where that I can go and manually remove the user? I am running postgreSQL 8.0.1 on gentoo linux


 
I recall having a similar problem a couple months ago. Those error messages look familiar.... I think in my case, the user name was capitalized when first set up.
 
Thank you for the post, I tried all sorts of permutations with capital letters and that still didn't work. Any other ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top