Como instalar o PostgreSQL 9.1 no OSX Lion

Fazi o download do PostgreSQL no site oficial e executei o instalador .dmg. Depois disso, baixei o pgadmin3 e sou capaz de conectar-me ao banco de dado

Quando executo 'psql', obtenho o seguinte erro:

psql: could not connect to server: No such file or directory
    Is the server running locally and accepting

Depois de horas pesquisando no Google, li sobre alguns problemas do $ PATH, então coloquei isso no meu .bashrc:

export PATH=/Library/PostgreSQL/9.1/bin:$PATH

No entanto, isso não resolve o erro acima. Depois de mais algumas horas pesquisando no Google, tentei executar o 'psql -l localhost -U postgres'. Isso dá outro erro:

psql: could not connect to server: Connection refused
    Is the server running on host "localhost" (::1) and accepting
    TCP/IP connections on port 5432?
could not connect to server: Connection refused
    Is the server running on host "localhost" (127.0.0.1) and accepting
    TCP/IP connections on port 5432?
could not connect to server: Connection refused
    Is the server running on host "localhost" (fe80::1) and accepting
    TCP/IP connections on port 5432?

pós algumas pesquisas, tentei editar o /Library/PostgreSQL/9.1/data/pg_hba.conf e substitui todas as ocorrências de 'md5' por 'trust'.

Em seguida, mudei de usuário para postgres e executei 'pg_ctl stop' e 'pg_ctl start', retornei ao meu próprio usuário e tentei conectar novamente, sem sort

qui estão mais algumas informações:

[~]$ which psql
/Library/PostgreSQL/9.1/bin/psql

ps aux | grep postgres
postgres       19022   0.0  0.0  2446096    484   ??  Ss   11:31PM   0:00.01 postgres: stats collector process   
postgres       19021   0.0  0.0  2486532   1776   ??  Ss   11:31PM   0:00.01 postgres: autovacuum launcher process   
postgres       19020   0.0  0.0  2486400    576   ??  Ss   11:31PM   0:00.03 postgres: wal writer process   
postgres       19019   0.0  0.0  2486400    820   ??  Ss   11:31PM   0:00.05 postgres: writer process   
postgres       19017   0.0  0.0  2446096    356   ??  Ss   11:31PM   0:00.01 postgres: logger process   
postgres       19015   0.0  0.1  2486400   8216 s001  S    11:31PM   0:00.17 /Library/PostgreSQL/9.1/bin/postgres

sudo find / -name .s.PGSQL.5432
No file was found?!?

Update 1: No /etc/sysctl.conf, adicionei os valores sugeridos pelo README do instalador:

kern.sysv.shmmax=1610612736
kern.sysv.shmall=393216
kern.sysv.shmmin=1
kern.sysv.shmmni=32
kern.sysv.shmseg=8
kern.maxprocperuid=512

Antes dessas configurações, o instalador fecha com um erro; depois, o assistente aparece e instala o postgres (e novamente, usando o pgadmin3 funciona, portanto, presumo que o banco de dados esteja funcionando corretamente

questionAnswers(4)

yourAnswerToTheQuestion