Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJvU6-0002Nw-So for pgsql-general@arkaria.postgresql.org; Fri, 26 Apr 2019 07:41:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hJvU5-0002Og-2n for pgsql-general@arkaria.postgresql.org; Fri, 26 Apr 2019 07:41:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJvU4-0002Kn-5t for pgsql-general@lists.postgresql.org; Fri, 26 Apr 2019 07:41:24 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJvTz-0006UP-An for pgsql-general@postgresql.org; Fri, 26 Apr 2019 07:41:22 +0000 Received: by mail-lf1-x136.google.com with SMTP id h126so1754255lfh.4 for ; Fri, 26 Apr 2019 00:41:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puris-lv.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version; bh=kbTMUVzRfdoAGdPx4HcuHKK8DDKexxECl+CBx0nYoE0=; b=N0g0gZNmiFaHUE8V82hxY3DUTRwJnkMmPGbWPsGeOGcZIFk7iqXpYxCmAOtmp9OkU7 t87d8nY1WW9iwqtMA8QWO2cpD2mYNUQfWB8p8DmEKSeeJ7rkPXOOSs3jgwh2ihNlmg3V FmHyh9h0j9+RV9uynCkNhQ41jpQdNrraf2oinxicAxcQ8nbQOTvBps3h5JqH/9OsZTQ9 7sd2UfiCjF9OrkNyPymdOoF038h4Xygdo9Kd8XFZZmHDIQzzCwjOxMAmkUyre3YS+l9H uWqpbYDMYchnKrDqg8iA8rh2hGE4JcvwrMnlIlQqVgWoQ505QKLzD5M3OcClwyFJevop +bVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version; bh=kbTMUVzRfdoAGdPx4HcuHKK8DDKexxECl+CBx0nYoE0=; b=JVE3JDYjLkhdyh+tnvElwT2SdFXfFoIbt4XkB4pcTPQa3JsmpflqxGIzp1NEKekI/1 shcREzS+Tu6/0fX+bvuaiQS8YKylDURjvLxoDftOQDPpr8ANmJ4FwCxBjKP/Fe+3Y29Y pxVcgdFF0LzsLl7jI8YLziAo+uNfADCSThDYxPQIt3omomMhgpU5DsRNnGpp0zWF5cNL WdFSNESnbjkDvDN2d1pD8r17v/VMjwfYf83ItLQFkYdsjKS4o/6x2+pAG1HHji1OZF3S BXeNAxz9tJAYxgfUzffScJ9RUsg9l0Zv3tYVQ84ev6n3pzfFVi3eh+9Q5JvsG4/ndbu3 LYyw== X-Gm-Message-State: APjAAAVamwFvZfEd+StgjhtR6iDPhPXElmoBXkyCcxfVnHY13CUirW1s UwhjiDdKjB2vUT6rk0h2xNHtCT32mnfVkw== X-Google-Smtp-Source: APXvYqz7bngURSWhHcuAAU3//iZ+TOfoMMERfmxCteKIKOYjZK/7e6BSQplDzu8AvzlfB7pQe1LoHQ== X-Received: by 2002:ac2:50ca:: with SMTP id h10mr9677648lfm.31.1556264476312; Fri, 26 Apr 2019 00:41:16 -0700 (PDT) Received: from [172.25.29.21] (vpn.netwerk.no. [193.58.241.100]) by smtp.gmail.com with ESMTPSA id v23sm148082ljk.14.2019.04.26.00.41.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Apr 2019 00:41:15 -0700 (PDT) Date: Fri, 26 Apr 2019 09:41:09 +0200 From: =?utf-8?Q?J=C4=81nis_P=C5=ABris?= To: =?utf-8?Q?J=C4=81nis_P=C5=ABris?= Cc: pgsql-general@postgresql.org Message-ID: <165ba87e-fa48-4eae-b1f3-f9a831b4890b@Spark> In-Reply-To: <695f797f-b02b-492a-94d3-0d5b4ab7c0a2@Spark> References: <95b05f8d-990a-4f15-906f-24a011fc00ed@Spark> <695f797f-b02b-492a-94d3-0d5b4ab7c0a2@Spark> Subject: Re: TCP Resets when closing connection opened via SSL X-Readdle-Message-ID: 165ba87e-fa48-4eae-b1f3-f9a831b4890b@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5cc2b61a_71f32454_331" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --5cc2b61a_71f32454_331 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Resending the original message without any formatting. Hello, I'm trying to do a simple health check for keepalived and other services = via a python script and psycopg2 library. All seems to be all right, unti= l I close the connection, at which point a packet with TCP reset is produ= ced. This has become very problematic and creates extensive noise in monitorin= g. It also happens with IntelliJ DataGrip provided Java driver and PHP drive= rs. And hence I do not think this is the drivers problem, but PG instead.= Script import psycopg2 import sys def check(): =C2=A0 =C2=A0=23 Relying on .pgpass for password =C2=A0 =C2=A0con =3D psycopg2.connect('user=3Dmonitoring dbname=3Dpostgre= s host=3D127.0.0.1') =C2=A0 =C2=A0cur =3D con.cursor() =C2=A0 =C2=A0cur.execute(=22select 'keepalived healthcheck'=22) =C2=A0 =C2=A0cur.close() =C2=A0 =C2=A0con.close() try: =C2=A0 =C2=A0check() =C2=A0 =C2=A0print(=22ok=22) except Exception as e: =C2=A0 =C2=A0print(=22not ok=22) =C2=A0 =C2=A0print(str(e)) =C2=A0 =C2=A0sys.exit(1) tcpdump tcpdump -v 'tcp=5Btcpflags=5D & (tcp-rst) =21=3D 0' -ilo 16:27:45.307006 IP (tos 0x0, ttl 64, id 8123, offset 0, flags =5BD=46=5D,= proto TCP (6), length 40) =C2=A0 =C2=A0localhost.40797 > localhost.postgres: =46lags =5BR=5D, cksum= 0x0cca (correct), seq 3830516781, win 0, length 0 =46rom PG side of things, all seems to be OK 2019-04-23 16:27:45.300 CEST process=3D15615 c=3D t=3D0 s=3D5cbf20e1.3cff= =5Bunknown=5D=40127.0.0.1:=5Bunknown=5D app=3D=5Bunknown=5D LOG: =C2=A0c= onnection received: host=3D127.0.0.1 port=3D40797 2019-04-23 16:27:45.304 CEST process=3D15615 c=3Dauthentication t=3D0 s=3D= 5cbf20e1.3cff monitoring=40127.0.0.1:postgres app=3D=5Bunknown=5D LOG: =C2= =A0connection authorized: user=3Dmonitoring database=3Dpostgres SSL enabl= ed (protocol=3DTLSv1.2, cipher=3DECDHE-RSA-AES256-GCM-SHA384, compression= =3Doff) 2019-04-23 16:27:45.306 CEST process=3D15615 c=3DBEGIN t=3D0 s=3D5cbf20e1= .3cff monitoring=40127.0.0.1:postgres app=3D=5Bunknown=5D LOG: =C2=A0dura= tion: 0.095 ms 2019-04-23 16:27:45.306 CEST process=3D15615 c=3DSELECT t=3D0 s=3D5cbf20e= 1.3cff monitoring=40127.0.0.1:postgres app=3D=5Bunknown=5D LOG: =C2=A0dur= ation: 0.234 ms 2019-04-23 16:27:45.306 CEST process=3D15615 c=3Didle in transaction t=3D= 0 s=3D5cbf20e1.3cff monitoring=40127.0.0.1:postgres app=3D=5Bunknown=5D L= OG: =C2=A0disconnection: session time: 0:00:00.006 user=3Dmonitoring data= base=3Dpostgres host=3D127.0.0.1 port=3D40797 I've tried various combinations of OS, psycopg2 and PG versions to no ava= il. My focus has been to reproduce with this driver only. =E2=80=A2 OS: Centos 7 and Ubuntu 18.04 =E2=80=A2 psycopg2: =46rom latest down to 2.7.x =E2=80=A2 PG: Latest 11 down to 9.4 (we use 9.4-bdr currently in producti= on) I can not reproduce this, when SSL has been disabled on PG. However this = is not a solution, as we are committed to use SSL for all our connections= to DB. Has anyone experienced this and could share any advice how I could preven= t this from producing network packets with TCP =5BR=5D flag =3F Thank you very much in advance and any advice will be much appreciated. P.S. I've also posted this on following channels: =E2=80=A2 https://dba.stackexchange.com/questions/235497/tcp-resets-when-= using-psycopg2 =E2=80=A2 https://github.com/psycopg/psycopg2/issues/906 Med vennlig hilsen. Best regards, Janis Puris. Med vennlig hilsen. Best regards, Janis Puris. On 26 Apr 2019, 09:34 +0200, J=C4=81nis P=C5=ABris , wr= ote: > Hello, > > I'm trying to do a simple health check for keepalived and other service= s via a python script and=C2=A0psycopg2=C2=A0library. All seems to be all= right, until I close the connection, at which point a packet with TCP re= set is produced. > This has become very problematic and creates extensive noise in monitor= ing. > It also happens with IntelliJ DataGrip provided Java driver and PHP dri= vers. And hence I do not think this is the drivers problem, but PG instea= d. > > Script > import psycopg2 > import sys > > > def check(): > =23 Relying on .pgpass for password > con =3D psycopg2.connect('user=3Dmonitoring dbname=3Dpostgres host=3D= 127.0.0.1') > cur =3D con.cursor() > cur.execute(=22select 'keepalived healthcheck'=22) > cur.close() > con.close() > > try: > check() > print(=22ok=22) > except Exception as e: > print(=22not ok=22) > print(str(e)) > sys.exit(1) > > tcpdump=C2=A0tcpdump -v 'tcp=5Btcpflags=5D & (tcp-rst) =21=3D 0' -ilo > 16:27:45.307006 IP (tos 0x0, ttl 64, id 8123, offset 0, flags =5BD=46=5D= , proto TCP (6), length 40) > localhost.40797 > localhost.postgres: =46lags =5BR=5D, cksum 0x0cca = (correct), seq 3830516781, win 0, length 0 > =46rom PG side of things, all seems to be OK > 2019-04-23 16:27:45.300 CEST process=3D15615 c=3D t=3D0 s=3D5cbf20e1.3c= ff =5Bunknown=5D=40127.0.0.1:=5Bunknown=5D app=3D=5Bunknown=5D LOG: conn= ection received: host=3D127.0.0.1 port=3D40797 > 2019-04-23 16:27:45.304 CEST process=3D15615 c=3Dauthentication t=3D0 s= =3D5cbf20e1.3cff monitoring=40127.0.0.1:postgres app=3D=5Bunknown=5D LOG:= connection authorized: user=3Dmonitoring database=3Dpostgres SSL enable= d (protocol=3DTLSv1.2, cipher=3DECDHE-RSA-AES256-GCM-SHA384, compression=3D= off) > 2019-04-23 16:27:45.306 CEST process=3D15615 c=3DBEGIN t=3D0 s=3D5cbf20= e1.3cff monitoring=40127.0.0.1:postgres app=3D=5Bunknown=5D LOG: duratio= n: 0.095 ms > 2019-04-23 16:27:45.306 CEST process=3D15615 c=3DSELECT t=3D0 s=3D5cbf2= 0e1.3cff monitoring=40127.0.0.1:postgres app=3D=5Bunknown=5D LOG: durati= on: 0.234 ms > 2019-04-23 16:27:45.306 CEST process=3D15615 c=3Didle in transaction t=3D= 0 s=3D5cbf20e1.3cff monitoring=40127.0.0.1:postgres app=3D=5Bunknown=5D L= OG: disconnection: session time: 0:00:00.006 user=3Dmonitoring database=3D= postgres host=3D127.0.0.1 port=3D40797 > I've tried various combinations of OS, psycopg2 and PG versions to no a= vail. My focus has been to reproduce with this driver only. > > =E2=80=A2 OS: Centos 7 and Ubuntu 18.04 > =E2=80=A2 psycopg2: =46rom latest down to 2.7.x > =E2=80=A2 PG: Latest 11 down to 9.4 (we use 9.4-bdr currently in produc= tion) > > I can not reproduce this, when SSL has been disabled on PG. However thi= s is not a solution, as we are committed to use SSL for all our connectio= ns to DB. > > Has anyone experienced this and could share any advice how I could prev= ent this from producing network packets with TCP =5BR=5D flag =3F > > Thank you very much in advance and any advice will be much appreciated.= > > P.S. I've also posted this on following channels: > > =E2=80=A2 https://dba.stackexchange.com/questions/235497/tcp-resets-whe= n-using-psycopg2 > =E2=80=A2 https://github.com/psycopg/psycopg2/issues/906 > > > Med vennlig hilsen. > Best regards, Janis Puris. --5cc2b61a_71f32454_331 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Resending the= original message without any formatting.

Hello,

I'm trying to do a simple health check for keepalived and other serv= ices via a python script and psycopg2 library. All seems to be all right,= until I close the connection, at which point a packet with TCP reset is = produced.

This has become very problematic and creates extensive noise in moni= toring.

It also happens with IntelliJ DataGrip provided Java driver and PHP = drivers. And hence I do not think this is the drivers problem, but PG ins= tead.

Script

import psycopg2
import sys

def check():
&=23160; &=23160;=23 Relying on .pgpass for password
&=23160; &=23160;con =3D psycopg2.connect('user=3Dmonitoring dbname=3D= postgres host=3D127.0.0.1')
&=23160; &=23160;cur =3D con.cursor()
&=23160; &=23160;cur.execute(=22select 'keepalived healthcheck'=22)<= /div>
&=23160; &=23160;cur.close()
&=23160; &=23160;con.close()

try:
&=23160; &=23160;check()
&=23160; &=23160;print(=22ok=22)
except Exception as e:
&=23160; &=23160;print(=22not ok=22)
&=23160; &=23160;print(str(e))
&=23160; &=23160;sys.exit(1)

tcpdump tcpdump -v 'tcp=5Btcpflags=5D & (tcp-rst) =21=3D 0' -ilo=

16:27:45.307006 IP (tos 0x0, ttl 64, id 8123, offset 0, flags =5BD=46= =5D, proto TCP (6), length 40)
&=23160; &=23160;localhost.40797 > localhost.postgres: =46lags =5B= R=5D, cksum 0x0cca (correct), seq 3830516781, win 0, length 0

=46rom PG side of things, all seems to be OK

2019-04-23 16:27:45.300 CEST process=3D15615 c=3D t=3D0 s=3D5cbf20e1= .3cff =5Bunknown=5D=40127.0.0.1:=5Bunknown=5D app=3D=5Bunknown=5D LOG: &=23= 160;connection received: host=3D127.0.0.1 port=3D40797
2019-04-23 16:27:45.304 CEST process=3D15615 c=3Dauthentication t=3D= 0 s=3D5cbf20e1.3cff monitoring=40127.0.0.1:postgres app=3D=5Bunknown=5D L= OG: &=23160;connection authorized: user=3Dmonitoring database=3Dpostgres = SSL enabled (protocol=3DTLSv1.2, cipher=3DECDHE-RSA-AES256-GCM-SHA384, co= mpression=3Doff)
2019-04-23 16:27:45.306 CEST process=3D15615 c=3DBEGIN t=3D0 s=3D5cb= f20e1.3cff monitoring=40127.0.0.1:postgres app=3D=5Bunknown=5D LOG: &=231= 60;duration: 0.095 ms
2019-04-23 16:27:45.306 CEST process=3D15615 c=3DSELECT t=3D0 s=3D5c= bf20e1.3cff monitoring=40127.0.0.1:postgres app=3D=5Bunknown=5D LOG: &=23= 160;duration: 0.234 ms
2019-04-23 16:27:45.306 CEST process=3D15615 c=3Didle in transaction= t=3D0 s=3D5cbf20e1.3cff monitoring=40127.0.0.1:postgres app=3D=5Bunknown= =5D LOG: &=23160;disconnection: session time: 0:00:00.006 user=3Dmonitori= ng database=3Dpostgres host=3D127.0.0.1 port=3D40797

I've tried various combinations of OS, psycopg2 and PG versions to n= o avail. My focus has been to reproduce with this driver only.

=E2=80=A2 OS: Centos 7 and Ubuntu 18.04
=E2=80=A2 psycopg2: =46rom latest down to 2.7.x
=E2=80=A2 PG: Latest 11 down to 9.4 (we use 9.4-bdr currently in pro= duction)

I can not reproduce this, when SSL has been disabled on PG. However = this is not a solution, as we are committed to use SSL for all our connec= tions to DB.

Has anyone experienced this and could share any advice how I could p= revent this from producing network packets with TCP =5BR=5D flag =3F

Thank you very much in advance and any advice will be much appreciat= ed.

P.S. I've also posted this on following channels:

=E2=80=A2 https://dba.stackexchange.com/questions/235497/tcp-resets-= when-using-psycopg2
=E2=80=A2 https://github.com/psycopg/psycopg2/issues/906

Med vennlig hilsen.
Best regards, Janis Puris.

Med vennlig hilsen.
Best regards, Janis Puris.
On 26 Apr 2019,= 09:34 +0200, J=C4=81nis P=C5=ABris <janis=40puris.lv>, wrote:

Hello,


I'm trying to do a simple health check for keep= alived and other services via a python script and&=23160;psycopg2&=23160;library. All seems to be all right, until I close the connectio= n, at which point a packet with TCP reset is produced.

This has become very problematic and creates ex= tensive noise in monitoring.

It also happens with IntelliJ DataGrip provided= Java driver and PHP drivers. And hence I do not think this is the driver= s problem, but PG instead.


Script=

import psycopg2
import sys


def check<=
span class=3D=22pun=22 style=3D=22margin: 0px; padding: 0px; border: 0px;=
 font-family: inherit; font-style: inherit; font-variant-caps: inherit; f=
ont-stretch: inherit; line-height: inherit; vertical-align: baseline; box=
-sizing: inherit; color: rgb(196, 194, 189);=22>():
    =23 Relying on .pgpass for password
    con =3D psycopg2.connect('u=
ser=3Dmonitoring dbname=3Dpostgres host=3D127.0.0.1')
    cur =3D con.cursor()
    cur.execute(=22select 'keepalived healthcheck'=22)
    cur.close()
    con.close()

try:
    check<=
span class=3D=22pun=22 style=3D=22margin: 0px; padding: 0px; border: 0px;=
 font-family: inherit; font-style: inherit; font-variant-caps: inherit; f=
ont-stretch: inherit; line-height: inherit; vertical-align: baseline; box=
-sizing: inherit; color: rgb(196, 194, 189);=22>()
    print<=
span class=3D=22pun=22 style=3D=22margin: 0px; padding: 0px; border: 0px;=
 font-family: inherit; font-style: inherit; font-variant-caps: inherit; f=
ont-stretch: inherit; line-height: inherit; vertical-align: baseline; box=
-sizing: inherit; color: rgb(196, 194, 189);=22>(=22ok=22)
except Exception as e:
    print<=
span class=3D=22pun=22 style=3D=22margin: 0px; padding: 0px; border: 0px;=
 font-family: inherit; font-style: inherit; font-variant-caps: inherit; f=
ont-stretch: inherit; line-height: inherit; vertical-align: baseline; box=
-sizing: inherit; color: rgb(196, 194, 189);=22>(=22not ok=22)
    print<=
span class=3D=22pun=22 style=3D=22margin: 0px; padding: 0px; border: 0px;=
 font-family: inherit; font-style: inherit; font-variant-caps: inherit; f=
ont-stretch: inherit; line-height: inherit; vertical-align: baseline; box=
-sizing: inherit; color: rgb(196, 194, 189);=22>(str(e))
    sys.exit(1)<=
/span>

tcpdump&=23160;tcpdump -v 'tcp=5Btcpflags=5D & (= tcp-rst) =21=3D 0' -ilo

16:27:45.307006 IP (tos 0x0, ttl 64, id 8123, offset 0,<=
/span> flags =5BD=46=5D, proto TCP (<=
/span>6), length 40)=

    localhost.407=
97 > localhost.postgres: =46lags =5BR=5D, cksum 0x0cca (correct), seq 3830516781, win 0, length =
0

=46rom = PG side of things, all seems to be OK

2019-04-23 16:27:45.300 =
CEST process=3D15615 c=3D t=3D=
0 s=3D5cbf20=
e1.3cff =5Bunknown=5D=40127.0.0=
.1:=5Bunknown=5D app=3D=5Bunk=
nown=5D LOG:  connection received: host=3D<=
span class=3D=22lit=22 style=3D=22margin: 0px; padding: 0px; border: 0px;=
 font-family: inherit; font-style: inherit; font-variant-caps: inherit; f=
ont-stretch: inherit; line-height: inherit; vertical-align: baseline; box=
-sizing: inherit; color: rgb(204, 148, 148);=22>127.0.0.1 port=3D40797=

2019-04-23=
 16:27:45.304 CEST process=3D15615=
 c=3Dauthentication t=3D0 s=3D=
5cbf20e1.3cff monitoring=40127=
.0.0.1:postgres app=3D=5Bunknown=5D LOG:  connection authorized=
: user=3Dmon=
itoring database<=
/span>=3Dpostgres SSL enabled (protocol=3DTLSv1.2, cipher=3DECDHE-RSA-AES256-GCM-SHA384, compression=
=3Doff)
2019-04-23=
 16:27:45.306 CEST process=3D15615=
 c=3DBEGIN t=3D0 s=3D5cbf20e1.3cff monitoring=
=40127.0.0.1:postgres app=3D=5Bun=
known=5D LOG:  duration: <=
span class=3D=22lit=22 style=3D=22margin: 0px; padding: 0px; border: 0px;=
 font-family: inherit; font-style: inherit; font-variant-caps: inherit; f=
ont-stretch: inherit; line-height: inherit; vertical-align: baseline; box=
-sizing: inherit; color: rgb(204, 148, 148);=22>0.095 ms
2019-04-23=
 16:27:45.306 CEST process=3D15615=
 c=3DSELECT t=3D0 s=3D5cbf20e1.3cff monitoring=
=40127.0.0.1:postgres app=3D=5Bun=
known=5D LOG:  duration: <=
span class=3D=22lit=22 style=3D=22margin: 0px; padding: 0px; border: 0px;=
 font-family: inherit; font-style: inherit; font-variant-caps: inherit; f=
ont-stretch: inherit; line-height: inherit; vertical-align: baseline; box=
-sizing: inherit; color: rgb(204, 148, 148);=22>0.234 ms
2019-04-23=
 16:27:45.306 CEST process=3D15615=
 c=3Didle in transaction t=3D0 s=3D5cbf20e1.3cff monitoring=40127.0.0.1:postgres app=3D=5Bunknown=5D LOG:  disconnect=
ion: session time: 0:<=
span class=3D=22lit=22 style=3D=22margin: 0px; padding: 0px; border: 0px;=
 font-family: inherit; font-style: inherit; font-variant-caps: inherit; f=
ont-stretch: inherit; line-height: inherit; vertical-align: baseline; box=
-sizing: inherit; color: rgb(204, 148, 148);=22>00:00.006 user=3Dmonitoring database=3D=
postgres host=3D<=
/span>127.0.0.1 port=3D40797

I've tr= ied various combinations of OS, psycopg2 and PG versions to no avail. My focus has been to reproduce with this driver= only.

  • OS: Centos 7 and Ubuntu 18.04
  • =
  • psycopg2: =46rom latest down to 2.7.x&=23= 160;
  • PG: Latest 11 down to 9.4 (we use 9.4-bdr currently= in production)
I can not reproduce this, when SSL has been disabled on PG. However this is not a solution, as we are committed to use SSL for all = our connections to DB.

Has anyone experienced this and could share = any advice how I could prevent this from producing network packets with T= CP =5BR=5D flag =3F


Thank you very much in advance and any ad= vice will be much appreciated.


P.S. I've also posted this on following chan= nels:


Med vennlig hilsen.
Best regards, Janis Puris.
--5cc2b61a_71f32454_331--