File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,6 @@ char *Unix_socket_group;
105
105
/* Where the Unix socket files are (list of palloc'd strings) */
106
106
static List * sock_paths = NIL ;
107
107
108
- PQcommMethods * PqCommMethods ;
109
-
110
-
111
108
/*
112
109
* Buffers for low-level I/O.
113
110
*
@@ -154,8 +151,6 @@ static int Lock_AF_UNIX(char *unixSocketDir, char *unixSocketPath);
154
151
static int Setup_AF_UNIX (char * sock_path );
155
152
#endif /* HAVE_UNIX_SOCKETS */
156
153
157
- PQcommMethods PQcommSocketMethods ;
158
-
159
154
static PQcommMethods PqCommSocketMethods = {
160
155
socket_comm_reset ,
161
156
socket_flush ,
@@ -167,6 +162,9 @@ static PQcommMethods PqCommSocketMethods = {
167
162
socket_endcopyout
168
163
};
169
164
165
+ PQcommMethods * PqCommMethods = & PqCommSocketMethods ;
166
+
167
+
170
168
171
169
/* --------------------------------
172
170
* pq_init - initialize libpq at backend startup
@@ -175,7 +173,6 @@ static PQcommMethods PqCommSocketMethods = {
175
173
void
176
174
pq_init (void )
177
175
{
178
- PqCommMethods = & PqCommSocketMethods ;
179
176
PqSendBufferSize = PQ_SEND_BUFFER_SIZE ;
180
177
PqSendBuffer = MemoryContextAlloc (TopMemoryContext , PqSendBufferSize );
181
178
PqSendPointer = PqSendStart = PqRecvPointer = PqRecvLength = 0 ;
You can’t perform that action at this time.
0 commit comments