<div dir="ltr">Hi,<div><br></div><div>postgres9.3.5</div><div>pgpool 3.6.4</div><div><br><div>I having problem connecting to postgresql servers via pgpool using python pg8000 module (which worked before on an older pgpool versions - 3.4.3):</div><div><br></div><div><div># PGPASSWORD=postgres psql -h <b>10.65.150.86</b> -p <b>9999</b> -U postgres -c &quot;show pool_nodes&quot;             </div><div><br></div><div> node_id |   hostname    | port | status | lb_weight |  role   | select_cnt | load_balance_node | replication_delay</div><div>---------+---------------+------+--------+-----------+---------+------------+-------------------+-------------------</div><div> 0<span style="white-space:pre">        </span> | 10.65.150.200 | 5432 | up     | 0.500000  | standby | 712678     | false             | 0</div><div> 1<span style="white-space:pre">        </span> | 10.65.150.201 | 5432 | up     | 0.500000  | primary | 51705100   | true              | 0</div><div>(2 rows)</div></div><div><br></div><div><br></div><div><u><b>connecting via cli to pgpool port is working as expected:</b></u></div><div><br></div><div><div># <b>PGPASSWORD=postgres psql -U postgres -h 10.65.150.86 -p 9999 -d postgres</b></div><div><font color="#6aa84f">psql (9.3.5)</font></div><div><font color="#6aa84f">Type &quot;help&quot; for help.</font></div><div><font color="#6aa84f"><br></font></div><div><font color="#6aa84f">postgres=#</font></div></div><div><div><br></div><div><br></div><div><br></div><div><br></div><div><b><u>connecting via python pg8000 module:</u></b></div><div><br></div><div># python2.7</div><div>Python 2.7.5 (default, Aug 22 2013, 07:49:49)</div><div>[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2</div><div>Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.</div><div>&gt;&gt;&gt; import pg8000</div><div><br></div><div><font color="#0000ff">connecting to pgpool port (9999)</font></div><div><br></div><div>&gt;&gt;&gt; <b>pg8000.Connection(user=&#39;postgres&#39;,password=&#39;postgres&#39;,host=&#39;10.65.150.86&#39;, port=9999, database=&#39;manager&#39;)</b></div><div><font color="#ff0000">Traceback (most recent call last):</font></div><div><font color="#ff0000">  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;</font></div><div><font color="#ff0000">  File &quot;/usr/lib/python2.7/site-packages/pg8000/interface.py&quot;, line 437, in __init__</font></div><div><font color="#ff0000">    self._begin = PreparedStatement(self, &quot;BEGIN TRANSACTION&quot;)</font></div><div><font color="#ff0000">  File &quot;/usr/lib/python2.7/site-packages/pg8000/interface.py&quot;, line 108, in __init__</font></div><div><font color="#ff0000">    self._parse_row_desc = self.c.parse(self._statement_name, statement, types)</font></div><div><font color="#ff0000">  File &quot;/usr/lib/python2.7/site-packages/pg8000/protocol.py&quot;, line 915, in _fn</font></div><div><font color="#ff0000">    self._sync()</font></div><div><font color="#ff0000">  File &quot;/usr/lib/python2.7/site-packages/pg8000/protocol.py&quot;, line 1208, in _sync</font></div><div><font color="#ff0000">    reader.handle_messages()</font></div><div><font color="#ff0000">  File &quot;/usr/lib/python2.7/site-packages/pg8000/protocol.py&quot;, line 876, in handle_messages</font></div><div><font color="#ff0000">    msg = self._conn._read_message()</font></div><div><font color="#ff0000">  File &quot;/usr/lib/python2.7/site-packages/pg8000/protocol.py&quot;, line 1000, in _read_message</font></div><div><font color="#ff0000">    bytes = self._read_bytes(5)</font></div><div><font color="#ff0000">  File &quot;/usr/lib/python2.7/site-packages/pg8000/protocol.py&quot;, line 988, in _read_bytes</font></div><div><font color="#ff0000">    self._sock_buf = self._sock.recv(1024)</font></div><div><font color="#ff0000">socket.timeout: timed out</font></div></div><div><br></div><div><br></div><div><font color="#0000ff">connecting to postgresql port:</font></div></div><div><br></div><div><div>&gt;&gt;&gt; <b>pg8000.Connection(user=&#39;fabrix&#39;,password=&#39;fabrix&#39;,host=&#39;10.65.150.86&#39;, port=5432, database=&#39;manager&#39;)</b></div><div><font color="#6aa84f">&lt;pg8000.interface.Connection object at 0x198bd10&gt;</font></div></div><div><br></div><div>Please advice, since this issue didnt came up with the older pgpool (3.4.3)</div><div><br></div><div><br></div><div>Thanks,</div><div>cohavisi</div><div><br></div><div><br></div></div>