Re: pg_restore out of memory - Mailing list pgsql-general

From Francisco Reyes
Subject Re: pg_restore out of memory
Date
Msg-id cone.1182278497.186236.90929.5001@35st.simplicato.com
Whole thread Raw
In response to Re: pg_restore out of memory  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-general
Alvaro Herrera writes:

> Can you send the program along?  And the table definition (including
> indexes, etc)?

I put the table definition and a Python program that reproduces the problem
at:

http://public.natserv.net/table-schema.sql
http://public.natserv.net/large_record.py

The program uses the psycopg2 library.
All the program does is to send test data to the table, in particular doing
a large text size for a text column called attachment_body.

The database doesn't give an out of error message like when trying to run a
copy, but instead generates a lot output to the log such as
http://public.natserv.net/postgresql-2007-06-19.txt

The out of memory error when trying to use the copy command is
http://public.natserv.net/postgresql-2007-06-15.log

Thanks for any further pointers and suggestions.
Don't know what else to try at this point.

pgsql-general by date:

Previous
From: John K Masters
Date:
Subject: Re: initdb
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Looking for Graphical people for PostgreSQL tradeshow signage