pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Surya Widyanto <ayrus02@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgsql-general@postgresql.org
Subject: Re: Slow or Cannot Connect to PostgreSQL Instance Service on Windows 10
Date: Thu, 23 Jul 2020 04:43:35 +0700
Message-ID: <35a72d52-12b0-0371-f6a1-9bb722716de6@gmail.com> (raw)
In-Reply-To: <935a008f-7804-f419-85b1-776800b37a04@aklaver.com>
References: <78b962c2-3f5e-9747-b945-f0899455817f@gmail.com>
	<935a008f-7804-f419-85b1-776800b37a04@aklaver.com>

On 23-07-2020 02:07, 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).
>> 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.
>>
>> I've try to restart the laptop, restart the service but nothing give 
>> the sign to improve the slow login/connection process.
>>
>> I've also try to turn off the *log_hostname* config in 
>> *postgresql.conf* and try to turn off the *Windows Firewall, Windows 
>> Defender Real-Time Scanner* but nothing works to improve the slow 
>> login connection.
>>
>> I've also try to check the Postgres Log file but not much error shows 
>> in the log except for this error that appears a few time:
>> 2020-07-22 14:43:22.312 +00 [13740] LOG:  could not receive data from 
>> client: An existing connection was forcibly closed by the remote host.
>
> Is the database server you are connecting to on the laptop or some 
> other machine?
>
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.
> Where is this Postgres log?
>
The path of the log is on 
*<data_directory>\log\postgresql-%Y-%m-%d_%H%M%S.log*
Is there any config that I can change to get more verbose log 
information to trace and debug the connection problem?
>>
>> This problem happens with all of the application such as *psql*, 
>> *pgAdmin*, *Navicat*, all with the same symptoms of slow 
>> login/connection to my PostgreSQL v12.3 (x64) service and if 
>> connected, then it will be easy to disconnected.
>>
>> If needed my laptop specs are:
>>
>>   * Intel Core i7-9750H
>>   * 16GB of RAM
>>   * Samsung SSD 970 EVO Plus 2TB
>>
>> Is database size can affect this connection time required to start a 
>> database session?
>
> No, a connection does not read the entire database.
>
>> FYI one of my database has size of 209GB, but currently I'm not using 
>> or connect to that database.
>>
>> Thanks in advance.
>>
>> Regards,
>> Surya
>>
>>
>
>

view thread (10+ messages)  latest in thread

Message-ID: <35a72d52-12b0-0371-f6a1-9bb722716de6@gmail.com>
Permalink:  ../35a72d52-12b0-0371-f6a1-9bb722716de6@gmail.com/
Also on:    postgresql.org/message-id/35a72d52-12b0-0371-f6a1-9bb722716de6@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ayrus02@gmail.com, adrian.klaver@aklaver.com
  Subject: Re: Slow or Cannot Connect to PostgreSQL Instance Service on Windows 10
  In-Reply-To: <35a72d52-12b0-0371-f6a1-9bb722716de6@gmail.com>
  References: <78b962c2-3f5e-9747-b945-f0899455817f@gmail.com> <935a008f-7804-f419-85b1-776800b37a04@aklaver.com> <35a72d52-12b0-0371-f6a1-9bb722716de6@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox