[Dbbalancer-users] Re: DBBalancer in production
Status: Alpha
Brought to you by:
xperience
From: Andrew M. <an...@ca...> - 2001-11-10 22:53:07
|
On Sat, 2001-11-10 at 00:27, Daniel Varela Santoalla wrote: > > I've just uploaded to CVS the last days changes, that should help with a lot > of the problems, including that. I'm just waiting to solve the UNIX socket > path configuration problem to release 0.4.1. Any idea on how to resolve this:? > > - Configuration parameter > - Runtime parameter. > - "configure" "--with" parameter on compiling. > > I've just taking a look on how does Postgres resolve this, but didn't find > still a conclusive response.... Way to go. What I did in my setup here was to use the DEFAULT_PGSOCKET_DIR setting defined in the PostgreSQL header "config.h". Like this: #include <postgresql/config.h> snprintf(sock_addr.sun_path,sizeof(sock_addr.sun_path), DEFAULT_PGSOCKET_DIR "/.s.PGSQL.%d",port); I did that in DBPostgresBackend.cc and similarly in DBBalancerDaemon.cc. Cheers, Andrew. -- -------------------------------------------------------------------- Andrew @ Catalyst .Net.NZ Ltd, PO Box 11-053, Manners St, Wellington WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St DDI: +64(4)916-7201 MOB: +64(21)635-694 OFFICE: +64(4)499-2267 |