pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki@enterprisedb.com>
To: Jason L. Buberel <jason@buberel.org>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Modifying the concurrent transaction limit
Date: Tue, 06 Mar 2007 16:28:43 +0000
Message-ID: <45ED96BB.4050408@enterprisedb.com> (raw)
In-Reply-To: <45ED92DD.3080307@buberel.org>
References: <45ED92DD.3080307@buberel.org>

Jason L. Buberel wrote:
> A. Is there really a built-in limit to the number of concurrent 
> transactions?
> B. Can this value be configured?

There certainly isn't in PostgreSQL. There is a configurable limit on 
the number of connections (max_connections in postgresql.conf), and 
another limit on the number of two-phase commit transactions in prepared 
state (max_prepared_transactions).

You'll need to look at your application and Hibernate...

> I have done what I can to try and ensure that these transactions are 
> cleaned up when processing completes, but sometimes garbage collection 
> does not occur soon enough and I accumulate 50 open transactions, 
> wedging the process. If there is something else that I should be doing 
> to avoid this type of problem, please suggest!

The usual pattern for closing resources is to release finite resources 
manually in a finally-clause, instead of waiting for the garbage 
collector to deal with it.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com



view thread (2+ messages)

Message-ID: <45ED96BB.4050408@enterprisedb.com>
Permalink:  ../45ED96BB.4050408@enterprisedb.com/
Also on:    postgresql.org/message-id/45ED96BB.4050408@enterprisedb.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-jdbc@postgresql.org
  Cc: heikki@enterprisedb.com, jason@buberel.org
  Subject: Re: Modifying the concurrent transaction limit
  In-Reply-To: <45ED96BB.4050408@enterprisedb.com>
  References: <45ED92DD.3080307@buberel.org> <45ED96BB.4050408@enterprisedb.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