Re: pg_dump: NOTICE: ShmemAlloc: out of memory

From: Mike Mascari <mascarm(at)mascari(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Brad Paul <bradpaul(dot)a(dot)with(at)long(dot)tail(dot)bdp-optics(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: pg_dump: NOTICE: ShmemAlloc: out of memory
Date: 2003-04-11 21:02:18
Message-ID: 3E972D5A.4060404@mascari.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Brad Paul <bradpaul(dot)a(dot)with(at)long(dot)tail(dot)bdp-optics(dot)com> writes:
>
>>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
>
>
>>This database has 3478 tables.
>
>
> You probably need to increase max_locks_per_transaction. Or better,
> rethink your schema. Thousands of tiny tables is usually a bad idea
> compared to a smaller number of (properly indexed) tables.

The number 3478 is coincidentally close to the number of NYSE
listed stocks (which drops a few here, picks up a few there)
over time. Although, as of yesterday, it was 3611. Hmmm...sounds
suspicious... :-)

Mike Mascari
mascarm(at)mascari(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Gearon 2003-04-11 21:09:41 Re: How can I get a column INT4 to be UNSIGNED ?
Previous Message Tom Lane 2003-04-11 20:54:12 Re: Case sensitive order by