After upgrade on Mountain Lion postgresql doesn't work
===

After upgrade on Mountain Lion postgresql don't work. I get the following error message when I let rails server running :

    could not connect to server: No such file or directory (PG::Error)
            Is the server running locally and accepting
            connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?


I uninstalled pg gem and then installed pg gem. But I get the following error message:
	
    Fetching: pg-0.14.0.gem (100%)
    Building native extensions.  This could take a while...
    ERROR:  Error installing pg:
            ERROR: Failed to build gem native extension.
    
            /Users/me/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
    checking for pg_config... yes
    Using config values from /usr/bin/pg_config
    checking for libpq-fe.h... *** extconf.rb failed ***
    Could not create Makefile due to some reason, probably lack of
    necessary libraries and/or headers.  Check the mkmf.log file for more
    details.  You may need configuration options.



Do you have the problem too?