Re: pg_dump: NOTICE: ShmemAlloc: out of memory

Поиск
Список
Период
Сортировка
От Mike Mascari
Тема Re: pg_dump: NOTICE: ShmemAlloc: out of memory
Дата
Msg-id 3E972D5A.4060404@mascari.com
обсуждение исходный текст
Ответ на Re: pg_dump: NOTICE: ShmemAlloc: out of memory  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
> Brad Paul <bradpaul.a.with@long.tail.bdp-optics.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@mascari.com


В списке pgsql-general по дате отправления:

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: How can I get a column INT4 to be UNSIGNED ?
Следующее
От: Dennis Gearon
Дата:
Сообщение: Re: How can I get a column INT4 to be UNSIGNED ?