@@ -105,9 +105,6 @@ char *Unix_socket_group;
105105/* Where the Unix socket files are (list of palloc'd strings) */
106106static List * sock_paths = NIL ;
107107
108- PQcommMethods * PqCommMethods ;
109-
110-
111108/*
112109 * Buffers for low-level I/O.
113110 *
@@ -154,8 +151,6 @@ static intLock_AF_UNIX(char *unixSocketDir, char *unixSocketPath);
154151static int Setup_AF_UNIX (char * sock_path );
155152#endif /* HAVE_UNIX_SOCKETS */
156153
157- PQcommMethods PQcommSocketMethods ;
158-
159154static PQcommMethods PqCommSocketMethods = {
160155socket_comm_reset ,
161156socket_flush ,
@@ -167,6 +162,9 @@ static PQcommMethods PqCommSocketMethods = {
167162socket_endcopyout
168163};
169164
165+ PQcommMethods * PqCommMethods = & PqCommSocketMethods ;
166+
167+
170168
171169/* --------------------------------
172170 *pq_init - initialize libpq at backend startup
@@ -175,7 +173,6 @@ static PQcommMethods PqCommSocketMethods = {
175173void
176174pq_init (void )
177175{
178- PqCommMethods = & PqCommSocketMethods ;
179176PqSendBufferSize = PQ_SEND_BUFFER_SIZE ;
180177PqSendBuffer = MemoryContextAlloc (TopMemoryContext ,PqSendBufferSize );
181178PqSendPointer = PqSendStart = PqRecvPointer = PqRecvLength = 0 ;