×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Can't delete user

Can't delete user

Can't delete user

(OP)
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


RE: Can't delete user

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.

RE: Can't delete user

(OP)
Thank you for the post, I tried all sorts of permutations with capital letters and that still didn't work.  Any other ideas?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close