pg_dump: NOTICE: ShmemAlloc: out of memory

From: Brad Paul <bradpaul(dot)a(dot)with(at)long(dot)tail(dot)bdp-optics(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: pg_dump: NOTICE: ShmemAlloc: out of memory
Date: 2003-04-11 01:41:14
Message-ID: b756fc$2qmj$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm trying to dump a database called stocks. I did:

pg_dump stocks > stocks.sql
pg_dump: NOTICE: ShmemAlloc: out of memory pg_dump: Attempt to lock table
"slab" failed. ERROR: LockAcquire: holder table out of memory

I'm using postgresql-7.2.3-5.73 on RedHat 7.3

I'm trying to do some calculations on historical stock information. I have
written a Perl scrip that fills my database with historical stock
information off the web. This database has 3478 tables. One table for each
stock ticker I'm interested in. Each table has up to 3000 rows.

When I do my calculations I need stock info for many tickers on one date
and then the next date etc.

The fact that pg_dump crashes when I try and dump that data concerns me.

Have I set up a very poor database? Would it be better for me to put all
of my data in to one table? If the data is all in one table will I need to
do a select for each date and ticker on a table with 3478*3000 rows.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ed L. 2003-04-11 02:03:18 Re: Batch replication ordering (was Re: [GENERAL] 32/64-bit transaction IDs?)
Previous Message Jack Dull 2003-04-11 01:33:02 what is wrong with data type 'array' ?