I will simplify the things in order to describe when the error occurred:
The input of the application is some data which is read from files on disk,
processed and then inserted in the database in one transaction. This total
quantity of data represents an integer number of data files, n*q, where q is
a file which has always 60kb and n is the positive integer.
For n=23 and shared_buffers=1000 and max_locks_per_transaction=64 the
Postgres throws the following exception:
org.postgresql.util.PSQLException: ERROR: out of shared memory
... 50 more
For n=23 I estimated that we create and manipulate about 8000 tables.
One of the suggestion received here was that maybe there are not sufficient
locks slots per transaction, that's why I've increased the
max_locks_per_transaction (to 128) in order to be able to manipulate about
12 800 tables.
So, I doubled both shared_buffers and max_locks_per_transaction and for
n=23 I received the same error. I would expect to see a difference, even a
little one, for example from n=23 to n=24 but the maximum quantity of data
accepted was the same.
Thank you very much,
With best regards
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Thursday, April 12, 2007 5:01 PM
To: Sorin N. Ciolofan
Cc: 'Shoaib Mir'; pgsql-general(at)postgresql(dot)org; pgsql-admin(at)postgresql(dot)org;
Subject: Re: [ADMIN] Increasing the shared memory
"Sorin N. Ciolofan" <ciolofan(at)ics(dot)forth(dot)gr> writes:
> This had also no effect. Because I can't see any
> between the maximum input accepted for our application with the old
> configuration and the maximum input accepted now, with the new
> configuration. It looks like nothing happened.
This is the first you've mentioned about *why* you wanted to increase the
settings, and what it sounds like to me is that you are increasing the
wrong thing. What's the actual problem?
regards, tom lane
In response to
pgsql-admin by date
|Next:||From: Bellur Ashwin||Date: 2007-04-13 13:40:10|
|Subject: Postgres Optimizer|
|Previous:||From: A. Kretschmer||Date: 2007-04-13 06:28:39|
|Subject: Re: question on plpgsql block|
pgsql-general by date
|Next:||From: Tino Wildenhain||Date: 2007-04-13 08:30:29|
|Subject: Re: Arrays with Rails?|
|Previous:||From: Alexey Nalbat||Date: 2007-04-13 07:28:45|
|Subject: Re: deadlock|