Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z4tak-0003jw-JG for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Jun 2015 16:20:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z4taj-0003Cl-B0 for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Jun 2015 16:20:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z4ovT-00008B-4c for pgsql-bugs@postgresql.org; Tue, 16 Jun 2015 11:21:07 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Z4ovP-0005Wv-MP for pgsql-bugs@postgresql.org; Tue, 16 Jun 2015 11:21:06 +0000 MIME-Version: 1.0 Subject: BUG #13446: pg_dump fails with large tuples To: pgsql-bugs@postgresql.org From: cpt@novozymes.com Date: Tue, 16 Jun 2015 11:20:41 +0000 Message-ID: <20150616112041.2735.95092@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 13446 Logged by: CPT Email address: cpt@novozymes.com PostgreSQL version: 9.3.5 Operating system: Linux, Ubuntu 12, 64-bit Description: It looks to me like pg_dump is limited to 1GB per row as a textual representation. # create table stringtest (test text); CREATE TABLE # insert into stringtest select repeat('A', (1024*2014*510)); INSERT 1 # alter table stringtest add test2 text; ALTER TABLE # update stringtest set test2 = test; UPDATE 1 # \q $ So far so good.... Now let's try to back this up using pg_dump: $ pg_dump ... -t stringtest ... pg_dump: Dumping the contents of table "stringtest" failed: PQgetResult() failed. pg_dump: Error message from server: ERROR: out of memory DETAIL: Cannot enlarge string buffer containing 1051791361 bytes by 1051791360 more bytes. pg_dump: The command was: COPY public.stringtest (test, test2) TO stdout; This message then shows up in the server logs. It looks like maybe pg_dump is limited to exactly 1GB textual representation? -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs