pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Arnaud L. <arnaud.listes@codata.eu>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: psql \copy hanging
Date: Tue, 8 Oct 2019 11:47:56 +0200
Message-ID: <b67fdd28-3551-0645-755c-77bb68229bb6@codata.eu> (raw)
In-Reply-To: <CAFj8pRCbOidyOMJ_0TPYdm0xKAJ2sHpC3VQdB_Mn05W0vgCF7g@mail.gmail.com>
References: <bb6d847c-e9c0-4b6d-4299-0b879042899a@codata.eu>
	<9e9164df-e7b7-bcd3-538a-7714907f7df4@aklaver.com>
	<171491de-b8e1-7f0d-0724-4d06a7902cc0@codata.eu>
	<291938b2-5816-5858-065f-e85387def0eb@aklaver.com>
	<230d9c65-450f-b97c-7ef0-c8e9a85103f6@codata.eu>
	<8f921914-178e-b520-7f93-dab80ea02555@aklaver.com>
	<d3ea5535-5e9a-9472-3051-175b70856a19@codata.eu>
	<e0288734-ad16-84aa-f6af-c7ebff2c3bac@aklaver.com>
	<ebfbdd2d-346d-f656-8b99-23c0ca50222c@codata.eu>
	<CAFj8pRCbOidyOMJ_0TPYdm0xKAJ2sHpC3VQdB_Mn05W0vgCF7g@mail.gmail.com>

Le 08/10/2019 à 09:28, Pavel Stehule a écrit :
> you can write simple C application with COPY API 
> https://www.postgresql.org/docs/12/libpq-copy.html

Unfortunately, I don't know C.

> Then you can eliminate or ensure locality of problem.
> 
> more, you can use server side copy. Superuser can read data from server 
> file system.

Yes, but in this case the file has to be written to a network share, and 
the windows user under wich PostgreSQL runs (Network Service) cannot be 
given write permission on this share.
That's the reason for the use of \copy.


Now that I think about it, *maybe* this started happening after a server 
upgrade. Since this is intermittent, I'm not really sure about this, but 
some time ago we moved our server to a different hardware and upgraded 
from 9.3 to 11 at the same time.
The dates don't perfectly match though, we upgraded around 8th of august 
and the problem arose ~2 weeks later for the first time.
The client was upgraded around that same time period (not exactly the 
same time if I remember correctly).


Regards
--
Arnaud





view thread (40+ messages)  latest in thread

Message-ID: <b67fdd28-3551-0645-755c-77bb68229bb6@codata.eu>
Permalink:  ../b67fdd28-3551-0645-755c-77bb68229bb6@codata.eu/
Also on:    postgresql.org/message-id/b67fdd28-3551-0645-755c-77bb68229bb6@codata.eu

 · 

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: arnaud.listes@codata.eu, pavel.stehule@gmail.com, adrian.klaver@aklaver.com
  Subject: Re: psql \copy hanging
  In-Reply-To: <b67fdd28-3551-0645-755c-77bb68229bb6@codata.eu>
  References: <bb6d847c-e9c0-4b6d-4299-0b879042899a@codata.eu> <9e9164df-e7b7-bcd3-538a-7714907f7df4@aklaver.com> <171491de-b8e1-7f0d-0724-4d06a7902cc0@codata.eu> <291938b2-5816-5858-065f-e85387def0eb@aklaver.com> <230d9c65-450f-b97c-7ef0-c8e9a85103f6@codata.eu> <8f921914-178e-b520-7f93-dab80ea02555@aklaver.com> <d3ea5535-5e9a-9472-3051-175b70856a19@codata.eu> <e0288734-ad16-84aa-f6af-c7ebff2c3bac@aklaver.com> <ebfbdd2d-346d-f656-8b99-23c0ca50222c@codata.eu> <CAFj8pRCbOidyOMJ_0TPYdm0xKAJ2sHpC3VQdB_Mn05W0vgCF7g@mail.gmail.com> <b67fdd28-3551-0645-755c-77bb68229bb6@codata.eu>

* 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