Обсуждение: Invalid User ID: 0

Поиск
Список
Период
Сортировка

Invalid User ID: 0

От
Howard Bagcat
Дата:
Anyone,

I am troubled on logging on to my postgresql running under Cygwin. Postmaster says, "Fatal: Invalid User ID 0" after
connecting.I 
know for sure that the username that I am using to log is existing. Thinking that having a new user will solve the
problem,I 
tried creating a new user but same error was displayed. I tried working on psql in the hope that I can connect to
postgresqlbut 
the same has occured.

I checked the Postmaster if it can determine the availability of the database in the system catalog by logging on to a
non-existing database and the Postmaster says, "Fatal: database "foo" does not exist in the system catalog". But as I
triedto 
connect to an existing database, "Invalid User ID 0" showed up. It seems to me that pgsql users' database have been
corrupted. 

BTW, postmaster started without errors.

Your guiding ideas and tips are highly appreciated.

PS. The database that I am trying to connect to is a production database working for 3 days and in a snap back-up
cannotbe 
created due to the above problem. Hope anyone of you can help.

Kumusta, Howard


E-Sulat v.0.0.1 ( Manna )
.......................................................................................
An extended module for MUWeb4 Project <http://www.mu.edu.ph>
Powered by Horde, Postfix, PostgreSQL & Courier-IMAP


Re: Invalid User ID: 0

От
Carlo Florendo
Дата:
Howard Bagcat wrote:

>Anyone,
>
>I am troubled on logging on to my postgresql running under Cygwin. Postmaster says, "Fatal: Invalid User ID 0" after
connecting.I 
>know for sure that the username that I am using to log is existing. Thinking that having a new user will solve the
problem,I 
>tried creating a new user but same error was displayed. I tried working on psql in the hope that I can connect to
postgresqlbut 
>the same has occured.
>
>
Please give the details of the exact command you're running.

In any case, you might try to connect as user postgres.

psql -d template1 -U postgres

If you're able to  connect to the psql shell, try checking the users
catalog via:

select * from pg_user;

Then, you can check whether the user you're referring to actually exists.


Thanks!

Best Regards,

Carlo
------
Carlo Florendo
Astra Philippines Inc.
www.astra.ph