Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jykS2-00014r-KY for pgsql-general@arkaria.postgresql.org; Thu, 23 Jul 2020 23:16:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jykRz-0005uf-Uh for pgsql-general@arkaria.postgresql.org; Thu, 23 Jul 2020 23:16:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jykRy-0005ms-AA for pgsql-general@lists.postgresql.org; Thu, 23 Jul 2020 23:16:31 +0000 Received: from [64.147.123.19] (helo=wout3-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jykRp-0002NT-On for pgsql-general@postgresql.org; Thu, 23 Jul 2020 23:16:29 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 424E53EB; Thu, 23 Jul 2020 19:16:09 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 23 Jul 2020 19:16:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=2 dKn/O9vHwfaUOI75x2/F3YCiQQQjCuIS+hpK5CIxH8=; b=eMHF3QxQpe7Wb3PX6 9pqwbKmaHFVrtXoaZeZIpKTUkOiF/os/pO7gCFSjIg2xynFa4OnTiJVVqm4vQibZ uMrWW6qWczz7utR4Uwcp3DoEA9MJO/YfkFEEEyZd1FIyaGxc1OOOVi84U2G5v39j W+hYL+EQxIgmfAuNhag/Qc4fp4LoJR/qPDeYay86vUXFu9K/L0vfMHEu1KwXf8+u zzH6222AO+Kgv+2nI1m674383T838tplF5Pgr+I0bEGG6cmhLroRcWNE5BBE6pG2 GBIr4tjHk3DXfwu6wd+uwodpAWahAfc4OwO1SJ81Gf8H2CyB9BRGoqMkEtpi9/dQ ZL27g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=2dKn/O9vHwfaUOI75x2/F3YCiQQQjCuIS+hpK5CIx H8=; b=a5pdWOCVlcm1Q4EmxpI//HKEavNvGwG8fHR+1Twvq6LCUMr3G0MKhXd81 1DXchWcieWlXxM590ccSqA4YtDMblEZ79S1xN8/WtJyCk/53aJm+LwMhJWc6Lafi khYei5zK4Qzp33VElfVQ4W1GRfvX7qb5Jy7QkH0qReUpqz1mk5EO55K8GRRbbB3n PCSLfczI0mz++SmLb3VUiAcuu7ohC4qPSEs/+KUG58qoQY4/J5HJKg3Am7GaIAA9 JlwVVcxNrv66EmVb1mQgoSK0m06OSfLy0I1X7RoGHycSzeAf2jWCi/jMl8JUnPmd ls1Mc+B8Nwj/17gVTZpGctmfAQTYg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrhedvgddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeehnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepueegfffhtdevhffhheekfefgteffffeggfethffhgeeh udffveetieelgeehgeehnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucfkphepjeehrddujedvrdehrddvfedunecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrh drtghomh X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 1D14530600A3; Thu, 23 Jul 2020 19:16:08 -0400 (EDT) Subject: Re: Slow or Cannot Connect to PostgreSQL Instance Service on Windows 10 To: Surya Widyanto , Rob Sargent Cc: "pgsql-general@postgresql.org" References: <78b962c2-3f5e-9747-b945-f0899455817f@gmail.com> <53d314b9-a817-f6be-8629-3ae58782e4fe@aklaver.com> <4296F087-4615-47F9-8B28-55F52FEDB861@gmail.com> <5e45e80c-d751-d00c-42a7-6671493b70aa@gmail.com> From: Adrian Klaver Message-ID: <14654932-2859-ec62-e6fc-827ac7b5f15f@aklaver.com> Date: Thu, 23 Jul 2020 16:16:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <5e45e80c-d751-d00c-42a7-6671493b70aa@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.19 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/22/20 4:49 PM, Surya Widyanto wrote: > On 23-07-2020 06:12, Rob Sargent wrote: >> >> >>> On Jul 22, 2020, at 4:58 PM, Surya Widyanto >> > wrote: >>> >>> On 23-07-2020 05:26, Adrian Klaver wrote: >>>> On 7/22/20 10:24 AM, Surya Widyanto wrote: >>>>> Hi, >>>>> >>>>> I have PostgreSQL v12.3 (x64) installed on my Laptop running >>>>> Windows 10 Home Single Language (64-bit). >>>>> In two or three times since I fresh install the PostgreSQL and >>>>> windows on 17-05-2020, 06:04:56 (GMT). >>>> >>>> Meant to ask earlier, where did you install Postgres from? >>>> >>> I've download the installer executable from >>> https://www.enterprisedb.com/downloads/postgres-postgresql-downloads, >>> the Windows x86-64 version. >>> >>> Then I've install it on my Windows with binaries path to *"C:\Program >>> Files\PostgreSQL\12\" *and for data path to *"H:\PostgreSQL\Data\12.x\"*. >>> Both *C:* and *H:* drive are partition on my NVMe PCIe Gen. 3 x 4 SSD >>> Drive mentioned earlier. >>> >>> For additional information, I've also install the *PostGIS v3.0 >>> r15475 (x64)* for *PostgreSQL v12.* >>> >>>>> By two or three times I mean, if this slow connection problem >>>>> happen, than it wil occur in a view days in a row. Then it will >>>>> return to normal with fast login/connection process. >>>>> >>>> >>>>> Regards, >>>>> Surya >>>>> >>>>> >> Is there by any chance a correlation between your physical location >> and the slowness episodes? >> Any AV software in play? >> > > Since this COVID-19 outbreak, I'm working from home. I've try to use > different internet connection to test, one with wired connection > internet provider on my house, and the other are 4G cellular connection > internet from my smartphone and both internet connection I use give the > same effect of slow and easy to drop/disconnect connection to PostgreSQL. I thought you said earlier you where only connecting to the database on your laptop at localhost?: "The Database is on the same machine/laptop, I try to connect using localhost and 127.0.0.1, both have the same slow connection problem." So Internet connection should not be of concern here or is there more to this story? > For additional information, I've also had this problem when connectiong > from PHP Application, so that total 4 apps I try to connect with > PostgreSQL (psql, pgAdmin, Navicat, PHP Application Connection) > I'm not installing any AntiVirus software, the only installed AntiVirus > software are WIndows Defender that came with Microsoft Windows. > (Currently I'm Disabling the real time scan on windows defender) > > After I activate the DEBUG5 for *log_min_messages* and > *log_min_error_statement*, another line of log came up with the other > log line I mentioned earlier: > 2020-07-22 23:31:29.065 +00 [postgres@postgres] - 127.0.0.1(10191) - > [1724] (psql) LOG:  could not receive data from client: An existing > connection was forcibly closed by the remote host. > 2020-07-22 23:31:29.065 +00 [postgres@postgres] - 127.0.0.1(10191) - > [1724] (psql) DEBUG:  unexpected EOF on client connection > > -- Adrian Klaver adrian.klaver@aklaver.com