By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,660 Members | 1,230 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,660 IT Pros & Developers. It's quick & easy.

Phantom user in db--'128'

P: n/a
I posted this earlier, and got no responses.
While using pg_dump and pg_restore (or attempting to restore, more
precisely), the process failed because of a missing user, user '128'. I
never created such a user, and when going to Privileges, such a user does
not exist in the list. However, while going out and checking some of the
tables, this user shows up as a user with privileges on them (however, not
on all tables). How do I get rid of this user? And how do I ensure that it
doesn't get created again? I'd like to understand what is really going on
before hacking the user table.
Thanks in advance.
Mark Taber
State of California
Department of Finance
Infrastructure & Architecture

916.323.3104 x 2945
ma********@dof.ca.gov
Nov 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Taber, Mark" <Ma********@dof.ca.gov> writes:
While using pg_dump and pg_restore (or attempting to restore, more
precisely), the process failed because of a missing user, user '128'. I
never created such a user, and when going to Privileges, such a user does
not exist in the list. However, while going out and checking some of the
tables, this user shows up as a user with privileges on them (however, not
on all tables). How do I get rid of this user? And how do I ensure that it
doesn't get created again? I'd like to understand what is really going on


You had a user with usesysid 128, whom you dropped, but he still had
privileges on some tables --- DROP USER is not good about detecting
dangling references.

I'd suggest recreating the user (CREATE USER foo WITH SYSID 128) and
then being careful to REVOKE all his privileges before you drop him
again. Or you can just manually edit the dump file to remove the
attempts to GRANT him privileges.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.