bugzilla-daemon at main.slony.info bugzilla-daemon at main.slony.info
Fri Dec 10 08:13:35 PST 2010
http://www.slony.info/bugzilla/show_bug.cgi?id=172

Christopher Browne <cbbrowne at ca.afilias.info> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|slony1-bugs at lists.slony.inf |cbbrowne at ca.afilias.info
                   |o                           |
             Status|NEW                         |ASSIGNED

--- Comment #2 from Christopher Browne <cbbrowne at ca.afilias.info> 2010-12-10 08:13:35 PST ---
Taking a peek at slon source code...


-> % ack-grep slon_connectdb
local_listen.c
57:     if ((conn = slon_connectdb(rtcfg_conninfo, "local_listen")) == NULL)

cleanup_thread.c
80:     if ((conn = slon_connectdb(rtcfg_conninfo, "local_cleanup")) == NULL)

remote_worker.c
370:    if ((local_conn = slon_connectdb(rtcfg_conninfo, conn_symname)) ==
NULL)
2588:   if ((pro_conn = slon_connectdb(conninfo, conn_symname)) == NULL)
3745:                   provider->conn = slon_connectdb(provider->pa_conninfo,

remote_listen.c
208:                    conn = slon_connectdb(conn_conninfo, conn_symname);

sync_thread.c
59:     if ((conn = slon_connectdb(rtcfg_conninfo, "local_sync")) == NULL)

slon.h
567:extern SlonConn *slon_connectdb(char *conninfo, char *symname);

dbutils.c
47: * slon_connectdb
51:slon_connectdb(char *conninfo, char *symname)
71:                              "slon_connectdb: PQconnectdb(\"%s\")
failed\n",
78:                              "slon_connectdb: PQconnectdb(\"%s\") failed -
%s",
120:                             "slon_connectdb: PQconnectdb(\"%s\")
PostgreSQL version not supported\n",

The value of "conn_symname" looks to be pretty suitable as being most of the
value to pass in.

Values include:
 local_listen
 local_cleanup
 local_sync
And within remote_worker.c:
 remoteWorkerThread_%d
 copy_set_%d
 subscriber_%d_provider_%d

-- 
Configure bugmail: http://www.slony.info/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Slony1-bugs mailing list