From: Arnaud L. <arnaud.listes@codata.eu>
To: Daniel Verite <daniel@manitou-mail.org>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: psql \copy hanging
Date: Tue, 8 Oct 2019 13:12:21 +0200
Message-ID: <ce1dcc77-884e-d328-ea04-18a4aa374c51@codata.eu> (raw)
In-Reply-To: <f228a10f-748d-4da1-9aad-6ae81b9c48c9@manitou-mail.org>
References: <f228a10f-748d-4da1-9aad-6ae81b9c48c9@manitou-mail.org>
Le 08/10/2019 à 12:55, Daniel Verite a écrit :
> Arnaud L. wrote:
>
>> As a side note, COPY (...) TO STDOUT \g 'somefile' does not work in a
>> script file (i.e. it does not work if the command is passed in a file
>> via the -f argument).
>> The command runs fine, no error is raised either by the client or the
>> server, but no file is written.
>
> Testing this with 11.5, it works for me.
> Make sure you're running the latest minor release (on the client
> side in this case), because a related fix was issued last February.
> For the 11 branch it was in version 11.2.
I'm on 11.5-1 on the client side, but I had added an output redirection
for this batch file to try to understand what was happening during the
night runs, and that might be the reason why \g fails (i.e. some
interference between the console redirections).
I'll give it another try without these redirections.
Regards
--
Arnaud
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, daniel@manitou-mail.org, adrian.klaver@aklaver.com
Subject: Re: psql \copy hanging
In-Reply-To: <ce1dcc77-884e-d328-ea04-18a4aa374c51@codata.eu>
References: <f228a10f-748d-4da1-9aad-6ae81b9c48c9@manitou-mail.org> <ce1dcc77-884e-d328-ea04-18a4aa374c51@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