pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sabin Coanda <s.coanda@deuromedia.ro>
To: pgsql-sql@postgresql.org
Subject: out of shared memory - find temporary tables
Date: Thu, 3 Feb 2011 12:52:57 +0200
Message-ID: <iie1ik$18ol$1@news.hub.org> (raw)

Hi there,

I got "out of shared memory" error.

Searching on postgresql forums, I found this it occurs probably because of
intensive use of temporary tables in one transaction.

I'm locking in pg_locks table, and I found some rows with the following
modes: "ShareLock", "AccessExclusiveLock", "ExclusiveLock",
"AccessShareLock", and "RowExclusiveLock" with many counts (especially
"AccessExclusiveLock" and "AccessShareLock"), but the oid and relname is
empty. I suppose there are related to some temporary tables.

How can I find what are the storage procedures which create these temporary
tables in my code ?

TIA,
Sabin







Message-ID: <iie1ik$18ol$1@news.hub.org>
Permalink:  ../iie1ik$18ol$1@news.hub.org/
Also on:    postgresql.org/message-id/iie1ik$18ol$1@news.hub.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: s.coanda@deuromedia.ro
  Subject: Re: out of shared memory - find temporary tables
  In-Reply-To: <iie1ik$18ol$1@news.hub.org>

* 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