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 1jyOUA-0007tR-05 for pgsql-general@arkaria.postgresql.org; Wed, 22 Jul 2020 23:49:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jyOU8-0003r0-Ga for pgsql-general@arkaria.postgresql.org; Wed, 22 Jul 2020 23:49:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jyOU8-0003qs-0n for pgsql-general@lists.postgresql.org; Wed, 22 Jul 2020 23:49:16 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jyOU4-0005E8-Hq for pgsql-general@postgresql.org; Wed, 22 Jul 2020 23:49:14 +0000 Received: by mail-pf1-x442.google.com with SMTP id s26so2087626pfm.4 for ; Wed, 22 Jul 2020 16:49:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id :disposition-notification-to:date:user-agent:mime-version :in-reply-to:content-language; bh=IZqll7iCvrLCBaenG8KEK/ZjROP4rG0FhS+Rj8rgsPI=; b=a8ZEO8ZGoalKv0zuxHj+wDvn+V0ggsCZQve/Gi7Gi/m5POYvIeSo0/odqMP/lZsi2I TTEOn5XMRJLlyQUrhb1nDknOQsW0TGOOzn0oDlLpHtY6aRhop48NQ399QGWzYjDbBbYG NYAKtn2sthrwInqziCjXKA2EQFQk38q812UAJfPIxgu6qz2L+tFUWL4QtsvpcYGXRTfR DkNr0/uIZ6li6MSud8D2gbbAqq2LuEDrKsIxuKlnZgFYlvyYOk+CzFuqBpo171NXnpCW hlBBKu4jJ9fuERGXDS8Dd02lNMNqIkpT7MtJdJn5e7RxqpGi2fTPus83Coj1NOcC6FZh Ss2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id :disposition-notification-to:date:user-agent:mime-version :in-reply-to:content-language; bh=IZqll7iCvrLCBaenG8KEK/ZjROP4rG0FhS+Rj8rgsPI=; b=BUkPMpFO727FjasnDbXXsS3Ao+b6yTOxgyp1UYPK5vF9h+9pZiRAj4RFcpZi/OIGFg 6x171vFFpc0tQAf/tl537mVN4n65Q0vAF8u3jmpY8n3+k0iNZXB6M88UAM5SbA5bb9wi oLoHbVO5VALSmmQyfgMF0U0H2qKQ9KCx5RTr3pnv6H945sycXTUlJtZkolVMPRmNzf3g k3XZJbAPFh2rji/POxcnZX3bicYX3wlj+mdoiDOSrwKWd2MqrPmfwJ80fZs0Wo8Xu0pZ E15x9m0vAWnpmic+fTp0Pzm8szo0ppGplGkzFW2KvRl/vWPauEng+zdtkHqj1wUA/1zh JuSg== X-Gm-Message-State: AOAM531q4ryEkefCREDL7h8vhjKQzZVo9YaqU1hXN9xYbO0JcR0jTd8L xPOZbgZ1rnoe9917xV1V8+N2Ot017fQ= X-Google-Smtp-Source: ABdhPJy4HeGf6+T2gpbAcD7WRDWb7l8VtRHyiV+ayzSSy8B8k98u0YOXJ2Ssqn8kHL0zHH49Ot4KHw== X-Received: by 2002:a63:441c:: with SMTP id r28mr1948849pga.372.1595461750802; Wed, 22 Jul 2020 16:49:10 -0700 (PDT) Received: from [10.0.9.18] ([118.137.79.174]) by smtp.gmail.com with ESMTPSA id bv12sm749470pjb.6.2020.07.22.16.49.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Jul 2020 16:49:10 -0700 (PDT) Subject: Re: Slow or Cannot Connect to PostgreSQL Instance Service on Windows 10 To: Rob Sargent Cc: Adrian Klaver , "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> From: Surya Widyanto Message-ID: <5e45e80c-d751-d00c-42a7-6671493b70aa@gmail.com> Disposition-Notification-To: Surya Widyanto Date: Thu, 23 Jul 2020 06:49:06 +0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <4296F087-4615-47F9-8B28-55F52FEDB861@gmail.com> Content-Type: multipart/alternative; boundary="------------3D02FE81C29AB40D4BF0AD30" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------3D02FE81C29AB40D4BF0AD30 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit 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. 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 --------------3D02FE81C29AB40D4BF0AD30 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit
On 23-07-2020 06:12, Rob Sargent wrote:


On Jul 22, 2020, at 4:58 PM, Surya Widyanto <ayrus02@gmail.com> 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.
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


--------------3D02FE81C29AB40D4BF0AD30--