I am using mac OS X 10.5.8. I installed PostgreSQL 9.1 (using a mac dmg driver) in order to build a database with python (using sqlalchemy and psycopg2).
When I first tried to connect to PostgreSQL via sqlalchemy I could not find a username:password combination that would allow me to create an engine and connect. I tried logging in as a superuser with postgres (which supposedly does not require a password), but that didn't work. I run into the same problems if I try connecting using the SQL shell (it requires me to enter a password even if I pick postgres as the user) or on the command line using su postgres.
Searching on Google for similar problems, it seems that this has something to do with the pg_hba.conf file, but I cannot locate it. Somebody pointed out that on mac it should be in Library/PostgreSQL/9.1/data folder, but I do not have rights to access this folder. Typing locate pg_hba.conf in the command line returns nothing. If I understand correctly (and I'm sure I don't as I've never used a database server before and I am no UNIX expert), the server is not recognizing me as the administrator, or superuser.
Is there something extremely obvious I do not know about initializing PostgreSQL (I searched through the documentation for "getting started" and post-installation configuration, but did not find anything that would obviously be related to this issue)? Could this be a problem with the installation of PostgreSQL? Might I have to change something in my environment?