pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #13446: pg_dump fails with large tuples
3+ messages / 3 participants
[nested] [flat]
* BUG #13446: pg_dump fails with large tuples
@ 2015-06-16 11:20 cpt@novozymes.com
0 siblings, 1 reply; 3+ messages in thread
From: cpt@novozymes.com @ 2015-06-16 11:20 UTC (permalink / raw)
To: pgsql-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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #13446: pg_dump fails with large tuples
@ 2015-06-17 04:08 Michael Paquier <michael.paquier@gmail.com>
parent: cpt@novozymes.com
0 siblings, 1 reply; 3+ messages in thread
From: Michael Paquier @ 2015-06-17 04:08 UTC (permalink / raw)
To: cpt@novozymes.com; +Cc: pgsql-bugs
On Tue, Jun 16, 2015 at 8:20 PM, <cpt@novozymes.com> wrote:
> This message then shows up in the server logs. It looks like maybe pg_dump
> is limited to exactly 1GB textual representation?
Yep. That's a known limitation of COPY and palloc() in general.
--
Michael
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #13446: pg_dump fails with large tuples
@ 2015-06-17 09:40 jaime soler <jaime.soler@gmail.com>
parent: Michael Paquier <michael.paquier@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: jaime soler @ 2015-06-17 09:40 UTC (permalink / raw)
To: Michael Paquier <michael.paquier@gmail.com>; +Cc: cpt@novozymes.com; pgsql-bugs
El mié, 17-06-2015 a las 13:08 +0900, Michael Paquier escribió:
> On Tue, Jun 16, 2015 at 8:20 PM, <cpt@novozymes.com> wrote:
> > This message then shows up in the server logs. It looks like maybe pg_dump
> > is limited to exactly 1GB textual representation?
>
> Yep. That's a known limitation of COPY and palloc() in general.
But could we use pg_dump with -Fc or -Fd in this case ? or the only way
to backup this table is using physical backup ?
Thanks
> --
> Michael
>
>
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2015-06-17 09:40 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-06-16 11:20 BUG #13446: pg_dump fails with large tuples cpt@novozymes.com
2015-06-17 04:08 ` Michael Paquier <michael.paquier@gmail.com>
2015-06-17 09:40 ` jaime soler <jaime.soler@gmail.com>
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