python - psycopg2 kills query after 3 minutes -
i using psycopg2 version 2.6.1, whenever run query remote server, if less 3 minutes run perfectly, if runs more 3 minutes gets killed.
i connecting , executing query following way (client side):
import psycopg2 con = psycopg2.connect("dbname=db user=db_user host=192.168.1.100 password=writerandompassword") cur = con.cursor() cur.execute('select * random_schema.random_table')
in logs in postgres server (server side):
log: not send data client: connection reset peer
doing tcpdump client sends "r" (reset) flag postgres server , kills connection.
if run same query using postgres server localhost, query runs time needs to, when try access remote.
ps. using postgresql 9.4.
Comments
Post a Comment