Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id E51569FB747; Tue, 27 Mar 2007 10:13:08 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 93954-02; Tue, 27 Mar 2007 10:12:58 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mailhost.ics.forth.gr (mailhost.ics.forth.gr [139.91.157.55]) by postgresql.org (Postfix) with ESMTP id D909D9FB560; Tue, 27 Mar 2007 10:13:03 -0300 (ADT) Received: from mailhost.ics.forth.gr (mailhost.ics.forth.gr [139.91.157.55] (may be forged)) by mailhost.ics.forth.gr (8.13.8/ICS-FORTH/V10-Server-2.0.0) with ESMTP id l2RDD1R3030128; Tue, 27 Mar 2007 16:13:01 +0300 X-DKIM: Sendmail DKIM Filter v0.6.1 mailhost.ics.forth.gr l2RDD1R3030128 DKIM-Signature: v=0.5; a=rsa-sha256; c=simple/simple; d=ics.forth.gr; s=mailhost; t=1175001181; bh=52pwbHDdiUZbWYBbFdnkdcMPqojzbhYZicrm8B u6Gi4=; h=Received:X-AuditID:Received:From:To:Cc:Subject:Date: MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer: thread-index:X-MimeOLE:In-Reply-To:Message-Id: X-Brightmail-Tracker; b=amuuxm6RuT0TQ1PL9p3VqpsYnr6QpsK0iqllZ/SrcB iH/dQ6ceDdGBNGOn3yUg2H2wK86j3IxY67cJ9gR1cR6ByY0YA/Q94E4vfIKeV5C5L6b azE0XC56wU5Rd5Rlr2G4QX6aD+vAolOKf89Fxhsr3RZCweayIDJtgf17Qpk46s= Received: from sappho.ics.forth.gr (unknown [127.0.0.1]) by mailhost.ics.forth.gr (Symantec Mail Security) with ESMTP id 52A0E16C092; Tue, 27 Mar 2007 16:13:01 +0300 (EEST) X-AuditID: 7f000001-a859bbb00000050a-4c-4609185da36c Received: from SHADOWFAX (unknown [139.91.183.33]) by mailhost.ics.forth.gr (Symantec Mail Security) with ESMTP id 065E38E40FC; Tue, 27 Mar 2007 16:13:01 +0300 (EEST) From: "Sorin N. Ciolofan" To: "'Tom Lane'" Cc: , , Subject: Re: [GENERAL] ERROR: out of shared memory Date: Tue, 27 Mar 2007 16:13:42 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 thread-index: AcdwIUsgxMJeBjGfS6KihRH9XjNwhQAUGMAg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 In-Reply-To: <11069.1174966638@sss.pgh.pa.us> Message-Id: <20070327131301.065E38E40FC@mailhost.ics.forth.gr> X-Brightmail-Tracker: AAAAAA== X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.069 tagged_above=0 required=5 tests=AWL, BAYES_50, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200703/216 X-Sequence-Number: 25040 Dear Mr. Tom Lane, Thank you very much for your answer. It seems that the legacy application creates tables dynamically and the number of the created tables depends on the size of the input of the application. For the specific input which generated that error I've estimated a number of created tables of about 4000. Could be this the problem? With best regards, Sorin -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Tuesday, March 27, 2007 6:37 AM To: Sorin N. Ciolofan Cc: pgsql-general@postgresql.org; pgsql-admin@postgresql.org; pgsql-performance@postgresql.org Subject: Re: [GENERAL] ERROR: out of shared memory "Sorin N. Ciolofan" writes: > I have to manage an application written in java which call another module > written in java which uses Postgre DBMS in a Linux environment. I'm new to > Postgres. The problem is that for large amounts of data the application > throws an: > org.postgresql.util.PSQLException: ERROR: out of shared memory AFAIK the only very likely way to cause that is to touch enough different tables in one transaction that you run out of lock entries. While you could postpone the problem by increasing the max_locks_per_transaction setting, I suspect there may be some basic application misdesign involved here. How many tables have you got? regards, tom lane