Re: Shared Memory: out of memory

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Shared Memory: out of memory
Дата
Msg-id 6501.977339368@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Shared Memory: out of memory  (Alexaki Sofia <alexaki@ics.forth.gr>)
Список pgsql-interfaces
Alexaki Sofia <alexaki@ics.forth.gr> writes:
> My application creates transactions consisting of about 3000
> updates operations ('insert into table'  and 'create table').
> My database consists of a huge (200000) number of tables which 
> form a hierarchy.

> The postmaster throws the following error massage
>> NOTICE:  ShmemAlloc: out of memory 
>> FATAL 1:  LockAcquire: lock table 1 is corrupted

You could try increasing the NLOCKS_PER_XACT space-estimation parameter
in src/include/storage/lock.h.  However, I'd advise rethinking your
database design instead.  200000 tables will incur all sorts of
performance penalties, starting with long Unix directory search times.
You'll be much better off if you put the same data into fewer tables
(probably with more columns).
        regards, tom lane


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

Предыдущее
От: Jie Liang
Дата:
Сообщение: Re: [ADMIN] Help me for "DBI->connect failed: Sorry, too many clients already."
Следующее
От: Kovacs Zoltan Sandor
Дата:
Сообщение: Re: RE: version numbers of WinODBC