pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: cpt@novozymes.com
To: pgsql-bugs@postgresql.org
Subject: BUG #13446: pg_dump fails with large tuples
Date: Tue, 16 Jun 2015 11:20:41 +0000
Message-ID: <20150616112041.2735.95092@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (3+ messages)  latest in thread

Message-ID: <20150616112041.2735.95092@wrigleys.postgresql.org>
Permalink:  ../20150616112041.2735.95092@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20150616112041.2735.95092@wrigleys.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: cpt@novozymes.com
  Subject: Re: BUG #13446: pg_dump fails with large tuples
  In-Reply-To: <20150616112041.2735.95092@wrigleys.postgresql.org>
  References: <20150616112041.2735.95092@wrigleys.postgresql.org>

* 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