<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 "show pool_nodes"             </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 "help" 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 "help", "copyright", "credits" or "license" for more information.</div><div>>>> import pg8000</div><div><br></div><div><font color="#0000ff">connecting to pgpool port (9999)</font></div><div><br></div><div>>>> <b>pg8000.Connection(user='postgres',password='postgres',host='10.65.150.86', port=9999, database='manager')</b></div><div><font color="#ff0000">Traceback (most recent call last):</font></div><div><font color="#ff0000">  File "<stdin>", line 1, in <module></font></div><div><font color="#ff0000">  File "/usr/lib/python2.7/site-packages/pg8000/interface.py", line 437, in __init__</font></div><div><font color="#ff0000">    self._begin = PreparedStatement(self, "BEGIN TRANSACTION")</font></div><div><font color="#ff0000">  File "/usr/lib/python2.7/site-packages/pg8000/interface.py", 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 "/usr/lib/python2.7/site-packages/pg8000/protocol.py", line 915, in _fn</font></div><div><font color="#ff0000">    self._sync()</font></div><div><font color="#ff0000">  File "/usr/lib/python2.7/site-packages/pg8000/protocol.py", line 1208, in _sync</font></div><div><font color="#ff0000">    reader.handle_messages()</font></div><div><font color="#ff0000">  File "/usr/lib/python2.7/site-packages/pg8000/protocol.py", line 876, in handle_messages</font></div><div><font color="#ff0000">    msg = self._conn._read_message()</font></div><div><font color="#ff0000">  File "/usr/lib/python2.7/site-packages/pg8000/protocol.py", line 1000, in _read_message</font></div><div><font color="#ff0000">    bytes = self._read_bytes(5)</font></div><div><font color="#ff0000">  File "/usr/lib/python2.7/site-packages/pg8000/protocol.py", 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>>>> <b>pg8000.Connection(user='fabrix',password='fabrix',host='10.65.150.86', port=5432, database='manager')</b></div><div><font color="#6aa84f"><pg8000.interface.Connection object at 0x198bd10></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>