I have changed the port of my PostgreSQL server, hence the socket it creates is no longer named ".s.PGSQL.5432".
Is there a way to update/force Rails/the pg gem to change the socket name it looks for? I have tried uninstalling/reinstalling the pg gem in line with recommendations but it still tries to look for a socket named .s.PGSQL.5432, not the .s.PGSQL.50000 that it should and as per the database.yml comments, the 'socket' config line does not apply for PostgreSQL.
- I can obviously create a symlink, but I was hoping there was a more elegant way around this.