pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Merlin Moncure <mmoncure@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Sorin N. Ciolofan <ciolofan@ics.forth.gr>
Cc: pgsql-general@postgresql.org
Cc: pgsql-admin@postgresql.org
Cc: pgsql-performance@postgresql.org
Subject: Re: [GENERAL] ERROR: out of shared memory
Date: Tue, 27 Mar 2007 09:06:38 -0400
Message-ID: <b42b73150703270606w6c6605fbt12e863c8c9ef6366@mail.gmail.com> (raw)
In-Reply-To: <11069.1174966638@sss.pgh.pa.us>
References: <20070326123127.55F808E40FC@mailhost.ics.forth.gr>
	<11069.1174966638@sss.pgh.pa.us>

On 3/26/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Sorin N. Ciolofan" <ciolofan@ics.forth.gr> 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?

or advisory locks...these are easy to spot.  query pg_locks and look
for entries of locktype 'advisory'.  I've already seen some apps in
the wild that use them, openads is one.

merlin



view thread (7+ messages)  latest in thread

Message-ID: <b42b73150703270606w6c6605fbt12e863c8c9ef6366@mail.gmail.com>
Permalink:  ../b42b73150703270606w6c6605fbt12e863c8c9ef6366@mail.gmail.com/
Also on:    postgresql.org/message-id/b42b73150703270606w6c6605fbt12e863c8c9ef6366@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mmoncure@gmail.com, tgl@sss.pgh.pa.us, ciolofan@ics.forth.gr, pgsql-general@postgresql.org, pgsql-performance@postgresql.org
  Subject: Re: [GENERAL] ERROR: out of shared memory
  In-Reply-To: <b42b73150703270606w6c6605fbt12e863c8c9ef6366@mail.gmail.com>
  References: <20070326123127.55F808E40FC@mailhost.ics.forth.gr> <11069.1174966638@sss.pgh.pa.us> <b42b73150703270606w6c6605fbt12e863c8c9ef6366@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox