Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cX4Kr-0001ll-2m for pgsql-admin@arkaria.postgresql.org; Fri, 27 Jan 2017 11:04:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cX4Kq-00046G-M5 for pgsql-admin@arkaria.postgresql.org; Fri, 27 Jan 2017 11:04:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cX4J7-0008Dn-Sb for pgsql-admin@postgresql.org; Fri, 27 Jan 2017 11:03:05 +0000 Received: from [195.159.176.226] (helo=blaine.gmane.org) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cX4J4-0001q7-8k for pgsql-admin@postgresql.org; Fri, 27 Jan 2017 11:03:05 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cX4IU-0000ec-06 for pgsql-admin@postgresql.org; Fri, 27 Jan 2017 12:02:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-admin@postgresql.org From: Thomas Kellerer Subject: Re: Failed to set up event for socket: error code 10038 Date: Fri, 27 Jan 2017 12:02:19 +0100 Lines: 40 Message-ID: References: <007601d27887$736d80c0$5a488240$@1nar.com.tr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: <007601d27887$736d80c0$5a488240$@1nar.com.tr> X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.159.176.226 (failed) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Ertan Küçükoğlu schrieb am 27.01.2017 um 11:23: > I read a FATAL marked line in postgresql log file at exact same second: > 2017-01-27 12:47:41 +03 FATAL: failed to set up event for socket: error > code 10038 > > Application is self-closing upon receiving such error. I instantly re-run it > (to continue my code tests) and sometimes it is 3-4 times until I can get my > application running. > > I am using latest version of Devart Universal Database Access Components > (UniDAC) for performing database operations. As far as I know, these > components make direct connection to PostgreSQL. Nothing in between like > ODBC or anything. If that is relevant. > > When I was investigating my problem, I also read following lines in the > postgresql log file: > 2017-01-27 12:22:34 +03 LOG: using stale statistics instead of current ones > because stats collector is not responding > 2017-01-27 12:27:35 +03 LOG: using stale statistics instead of current ones > because stats collector is not responding > 2017-01-27 12:29:51 +03 LOG: using stale statistics instead of current ones > because stats collector is not responding > 2017-01-27 12:30:51 +03 LOG: using stale statistics instead of current ones > because stats collector is not responding > 2017-01-27 12:32:35 +03 LOG: using stale statistics instead of current ones > because stats collector is not responding > > My questions are: > 1- I understand that PostgreSQL is closing the connection. What may cause > for such a connection error, and how to solve it? > 2- These "stale statistics" messages in log file, are they anything > important? Is there a way to stop them being logged because they seem to > grow log file. Try to disable your Anti-Virus for a test. If things then work, configure your Anti-Virus to not scan the Postgres data directory and to not check postgres.exe Thomas -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin