Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ab8dm-0005JF-Gj for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Mar 2016 15:24:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ab8dl-0006zd-E1 for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Mar 2016 15:24:41 +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_SHA384:256) (Exim 4.84) (envelope-from ) id 1ab8cQ-0005Uf-Af for pgsql-hackers@postgresql.org; Wed, 02 Mar 2016 15:23:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ab8cN-0000Vq-PX for pgsql-hackers@postgresql.org; Wed, 02 Mar 2016 15:23:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u22FNDYK021332; Wed, 2 Mar 2016 10:23:13 -0500 From: Tom Lane To: Tomas Vondra cc: pgsql-hackers@postgresql.org Subject: Re: pg_dump / copy bugs with "big lines" ? In-reply-to: <56D70458.2010006@2ndquadrant.com> References: <10cb3300-67ab-4d3b-a930-7106d4dbac04@mm> <56D70458.2010006@2ndquadrant.com> Comments: In-reply-to Tomas Vondra message dated "Wed, 02 Mar 2016 16:18:48 +0100" Date: Wed, 02 Mar 2016 10:23:13 -0500 Message-ID: <21331.1456932193@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Tomas Vondra writes: > On 03/02/2016 03:18 PM, Daniel Verite wrote: >> However, getting it to the client with \copy big2 to 'file' >> still produces the error in psql: >> lost synchronization with server: got message type "d" >> and leaves an empty file, so there are more problems to solve to >> go beyond 2GB text per row. > My guess is this is a problem at the protocol level - the 'd' message is > CopyData, and all the messages use int32 to define length. So if there's > a 2GB row, it's likely to overflow. I'm too lazy to check the exact wording, but I don't think there's a hard and fast promise in the protocol doc that one CopyData message == one row. So we could probably subdivide a very wide line into multiple messages. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers