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 1i0nyF-000853-BU for pgsql-general@arkaria.postgresql.org; Thu, 22 Aug 2019 14:21:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i0nyE-00076i-3q for pgsql-general@arkaria.postgresql.org; Thu, 22 Aug 2019 14:21:46 +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 1i0nyC-0006o7-3Q for pgsql-general@lists.postgresql.org; Thu, 22 Aug 2019 14:21:45 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i0ny8-0005LQ-Vk for pgsql-general@postgresql.org; Thu, 22 Aug 2019 14:21:42 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C565C21240; Thu, 22 Aug 2019 10:21:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 22 Aug 2019 10:21:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=r bW34i/z0rkDEtEI7CbfpNS6icTvQfnOYjerpkMbPd0=; b=I67ckqB16f3InEPhT XByRFZWG2TdzCWiEuhiM8kzMbws5uO1N3YIU6oJJGscgDkt2qF9Ag+tHOnkfQsfw 4nyNmiao6cmtRMVL4c4eG91VhNV96OfPio0JmEFJ0gpl/IxZgPHaRmZU86q3rfuC MrqeUAampzSOzv2sLwfov7K+NYvJ+mgMlv4wkqxIo0irMIe9EK3fqzC2EyXylhrU Auq+l+BWuAiwdHQe3npxMzlp3zohAqnIPUzZS6kNf53WYnIlId9VPOp9+CM1vTYs XWOAC9ID8a5MXkqH8qh3SCuCYKj4ANMvLlIfkvRR+4eeSxveu8UDmhsXrLse9x+O vsxtg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=rbW34i/z0rkDEtEI7CbfpNS6icTvQfnOYjerpkMbP d0=; b=HF0eura4Alfb5lc3xgBpgm62ZWw0GTc2l10RiY6HSStGeAFz9Uv4VIhe0 R7Fsl3ikZn5bAgQFA7n+FZYrtBAYweWvzfNa/UU2dm626oe5tdcq86fkNei3Er6Y 6CaCdmB5HiS15T8L0EUA0frz39uj+tH7OCDo87UvCPOcUv3XRFIWnrDkEhmwr23f nG/qbTcaUJfrpVHYU8tWzt5WEXy+Gtl2/DLgHfZp0kL6nMfv23a9eoYdmhDcoylI +fBiOGvVm3Ch2j9c1XW0A1iPC6NjdUjnn/Lmys1swVSF5/wQ9RWUMedm0BUvtHYy QlAAoYAH+3whQX181FejD1Puqv6JQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudegiedgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecukfhppeejuddrvdduvddrudehtddrvd dtvdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghk lhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 9BEEED6005B; Thu, 22 Aug 2019 10:21:38 -0400 (EDT) Subject: Re: psql \copy hanging To: arnaud.listes@codata.eu, pgsql-general@postgresql.org References: <87b0474a-cd95-c983-08f9-5eef3bf50aed@codata.eu> From: Adrian Klaver Message-ID: Date: Thu, 22 Aug 2019 07:21:37 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <87b0474a-cd95-c983-08f9-5eef3bf50aed@codata.eu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 8/22/19 7:07 AM, Arnaud L. wrote: > Le 22/08/2019 à 16:00, Adrian Klaver a écrit : >> The first thing I think of when seeing this sort of behavior on Windows >> is anti-virus software. Doing you have any running on the machine? >> >> You say it always hangs on the same line. Is that line doing something >> different from the others? Say writing to a different location. > > Thanks for your insights Adrian. > > There is no AV software on the machine as it is a Server version of > Windows. (I know some people run AV on Windows Server, but I don't) > > All the lines write to the same location which is a network share, but > the hanging one is clearly the longest query to execute and the output > file is one of the biggest one (though not the biggest). The only thing I can think of at the moment is to put the offending line in a separate script and see what happens. > > Note that the share points to a local folder. The fact the psql writes > to a share is only for robustness so that this script could be executed > from any machine. > > Cheers > > -- > Arnaud > -- Adrian Klaver adrian.klaver@aklaver.com