[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: unixODBC and postgresql



"Ivan E. Moore II" wrote:
  >I received a patch to fix this, I'm just away from my pc for the weekend
  >and can't fix it immediatly. 

The temporary solution is to create a symbolic link:

   ln -s /var/run/postgresql/.s.PGSQL.5432 /tmp/.s.PGSQL.5432

This Unix socket was moved from /tmp in postgresql-7.0.2-5, because
people using tmpreaper were deleting it and breaking their database
connections.  unixodbc hardcodes the path to this socket; creating the
symbolic link should avoid the problem, I think.

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47  6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "The fool hath said in his heart, There is no God..."  
                                Psalm 14:1 




Reply to: