Re: [Dbbalancer-users] Re: DBBalancer in production
Status: Alpha
Brought to you by:
xperience
From: Daniel V. S. <dv...@ar...> - 2001-11-18 23:29:17
|
On Sat 10 Nov 2001 23:52, Andrew McMillan wrote: I see a problem with this solution: It would force people to have postgres installed in the same machine in which you are compiling. This is not currently required (only if you want to build tests). What I could do is to copy that value as default IF a postgres install is present. So the order could be: - A "-k" flag, just like postmaster, or - a configuration parameter or - a default value, the one taken from postgres or "/tmp" if postgres is not present.. > > 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. -- ---------------------------------- Regards from Spain. Daniel Varela ---------------------------------- If you think education is expensive, try ignorance. -Derek Bok (Former Harvard President) |