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 1i2ZTZ-0001Vx-5I for pgsql-general@arkaria.postgresql.org; Tue, 27 Aug 2019 11:17:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i2ZTY-0007pq-2o for pgsql-general@arkaria.postgresql.org; Tue, 27 Aug 2019 11:17:24 +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 1i2ZTX-0007pf-Mu for pgsql-general@lists.postgresql.org; Tue, 27 Aug 2019 11:17:23 +0000 Received: from serveurmail01.codata.be ([82.146.123.190]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1i2ZTU-0003nD-VY for pgsql-general@lists.postgresql.org; Tue, 27 Aug 2019 11:17:22 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by serveurmail01.codata.be (Postfix) with ESMTP id 72826900E4; Tue, 27 Aug 2019 13:17:19 +0200 (CEST) X-Virus-Scanned: amavisd-new at serveurmail01.codata.be Received: from serveurmail01.codata.be ([127.0.0.1]) by localhost (serveurmail01.codata.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rhVJAtxAIhkC; Tue, 27 Aug 2019 13:17:18 +0200 (CEST) Received: from [10.0.0.100] (38-179-112-217.fix.adsl.belcenter.be [217.112.179.38]) by serveurmail01.codata.be (Postfix) with ESMTPSA id 87AE6900DE; Tue, 27 Aug 2019 13:17:18 +0200 (CEST) Reply-To: arnaud.listes@codata.eu Subject: Re: psql \copy hanging To: Luca Ferrari Cc: pgsql-general References: <6947a518-82dd-fc26-57b3-6da5e8b89445@codata.eu> <4f450814-5697-06b1-651b-540cac0a10b0@codata.eu> From: "Arnaud L." Message-ID: <574a09e0-cf01-4664-c61c-c2d0ae9300f9@codata.eu> Date: Tue, 27 Aug 2019 13:17:17 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Le 27/08/2019 à 13:13, Luca Ferrari a écrit : > My personal experience with shares and network that are not so much > stable is that they can block, and that is why I'm suggesting to try > on the local filesystem to see if that is a share-related problem or a > resource problem. Also scheduling the script at a different time could > help, because it could be at that time the machine (and it could mean > the sharing machine) is busy at the point it does not respond. I'm quite confident that changing the schedule would help (since the script runs fine during work hours), but the time-table is already quite busy. I move the offending line at the end of the script, so it will run some minutes later, maybe this will be enough. I'll also try to write it directly on a local folder to rule this out. Cheers -- Arnaud