I installed PostgreSQL on my windows 7 desktop.
Usually PostgreSQL will create new account on my desktop, but when i want to switch user, there’s no user named postgres. Then I checked the user folder in directory “C” and there’s already a folder user named postgres.
But why can’t I log in into my desktop using postgres account?
The
postgresaccount is a service account. It doesn’t have the login right, and cannot be logged into. You can userunas.exeto run commands as the PostgreSQL user account, or shift-right-click on a program and use “Run as…”.In PostgreSQL 9.2 and above the installer puts PostgreSQL in the
NETWORKSERVICEby default, so nopostgresuser account needs to be created.In general, there is no need to run programs as the
postgresuser on Windows. Just specify the user to connect to the PostgreSQL server as, eg: