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 1iHU8E-0006kd-Hm for pgsql-general@arkaria.postgresql.org; Mon, 07 Oct 2019 14:37:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iHU8D-0000cJ-46 for pgsql-general@arkaria.postgresql.org; Mon, 07 Oct 2019 14:37:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iHU8B-0000bz-LV for pgsql-general@lists.postgresql.org; Mon, 07 Oct 2019 14:37:00 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iHU86-0007FD-QR for pgsql-general@postgresql.org; Mon, 07 Oct 2019 14:36:58 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 653A531F; Mon, 7 Oct 2019 10:36:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 07 Oct 2019 10:36:51 -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=fm1; bh=a WgqfBaZuoZ90E3LIsrMAlag9QT69JfYNqQinDQY95s=; b=snchMwJvUvfaVCm+e R5AcMACCn02UI3jz3vV11YdgX8ONgACkp7UScFWRB+n6gIVVwJ15YOfogtSztC8Z N41VjVEwrds8M/DjwMRPppQVuwqD4Id5r1EjjqBGTqNl6uuPFzSqXDd8LgtHqM/q Y9lBA36F8ghb+x6MM8G4tZ70MM8sOS6SHff2gAqz2k/UY33qlXnsP1y7M8MDmBNs 4Se8J2kj5XBBpTIofIiW4c4ecsjAfImCJrrmnMZlQLP3C84Ji1SvZqiSOQlcCPEF 7J8YCP+ql5ckh3Jxx89TKkRKCPZBVD+YOiqC66R18ylaNpaIgPCDoq7D85VXBwc8 bn9Wg== 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=fm1; bh=aWgqfBaZuoZ90E3LIsrMAlag9QT69JfYNqQinDQY9 5s=; b=a5gytK/MDRKx8hBkZ293rJ6Wx7pufyvdFywq7BWeu4GwjcBmnZDAxqOe2 qeXPR/IaHvYu01aoXnVxX8he9oj7ELkU3BfY3LJvKuza3LEfNaZAESyibLsQsTKN 4z/f/ekZPkAXpSIr89nCGuWNJvfXUP2dhN1/IqpBu/gB6PtUxHXiKWDp7sqJbLFZ 7m4RyyB7Ia6d5kyUXNuKvvuF3M//ffmX3fiLLmlqlulTAZvFyfPYeRlrSDZKeAUk cxFBGGXah0Z60WbMbDLJ5fKdT9D+L8fp0dOQCWCP6MQDiFYALVCv0BVfaHDVvJ4o 4GbddHg8Rw2tKCS1kZO6dmhwJOLOA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrheejgdeigecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucfkphepudejgedrvddurdejjedrfeejne curfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghv vghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.3] (174-21-77-37.tukw.qwest.net [174.21.77.37]) by mail.messagingengine.com (Postfix) with ESMTPA id D308980061; Mon, 7 Oct 2019 10:36:49 -0400 (EDT) Subject: Re: psql \copy hanging To: arnaud.listes@codata.eu, pgsql-general References: <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> From: Adrian Klaver Message-ID: Date: Mon, 7 Oct 2019 07:36:48 -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: 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 10/7/19 12:41 AM, Arnaud L. wrote: > Le 04/10/2019 à 19:08, Adrian Klaver a écrit : >> On 10/4/19 12:19 AM, Arnaud L. wrote: >>> OK I can do that. I thought I nailed it down to this line because it >>> started failing when this line was ~5th in the script, and it kept >>> failing on that very same line after I moved it at the very end of >>> the script (that's where it is now). >> >> Which tends to point to it as the problem. The question is whether it >> exhibits that behavior on its own or only when in combination with the >> other commands. > > Yes. It ran fine this last night. I had moved the line back to its > original place, so now everything is exactly like it was before it > started showing this behaviour. So you are saying that you have not run the problematic line by itself? > > So, still apparently random... >> Yeah not sure how that is supposed to work: >> > [...] >> production_(postgres)# \copy (select * from cell_per) TO STDOUT \g >> 'cell.txt' >> ERROR:  syntax error at or near "\" >> LINE 1: COPY  ( select * from cell_per ) TO STDOUT \g 'cell.txt' > > This works with real SQL commands, so it should be "COPY" here, not > "\copy". I was not paying attention, thanks for the heads up. > > Regards > -- > Arnaud > -- Adrian Klaver adrian.klaver@aklaver.com