pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: arnaud.listes@codata.eu
To: pgsql-general@postgresql.org
Subject: Re: psql \copy hanging
Date: Thu, 22 Aug 2019 07:21:37 -0700
Message-ID: <d655c6d1-08f0-dfaa-8f49-9ec58b0bbe25@aklaver.com> (raw)
In-Reply-To: <87b0474a-cd95-c983-08f9-5eef3bf50aed@codata.eu>
References: <d5df5507-7491-5877-5412-c9325d0ec49c@codata.eu>
	<f9cb2bae-9f54-df3d-900d-82371d6fb62c@aklaver.com>
	<87b0474a-cd95-c983-08f9-5eef3bf50aed@codata.eu>

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





view thread (40+ messages)  latest in thread

Message-ID: <d655c6d1-08f0-dfaa-8f49-9ec58b0bbe25@aklaver.com>
Permalink:  ../d655c6d1-08f0-dfaa-8f49-9ec58b0bbe25@aklaver.com/
Also on:    postgresql.org/message-id/d655c6d1-08f0-dfaa-8f49-9ec58b0bbe25@aklaver.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: adrian.klaver@aklaver.com, arnaud.listes@codata.eu
  Subject: Re: psql \copy hanging
  In-Reply-To: <d655c6d1-08f0-dfaa-8f49-9ec58b0bbe25@aklaver.com>
  References: <d5df5507-7491-5877-5412-c9325d0ec49c@codata.eu> <f9cb2bae-9f54-df3d-900d-82371d6fb62c@aklaver.com> <87b0474a-cd95-c983-08f9-5eef3bf50aed@codata.eu> <d655c6d1-08f0-dfaa-8f49-9ec58b0bbe25@aklaver.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