pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Vadim Nasardinov <vadimn@redhat.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: summary of new features in JDBC 3.0
Date: Thu, 28 Oct 2004 12:08:29 +1300
Message-ID: <41802A6D.10703@opencloud.com> (raw)
In-Reply-To: <200410271855.03938@vadim.nasardinov>
References: <200410271623.44895@vadim.nasardinov>
	<4180101C.7090500@opencloud.com>
	<200410271855.03938@vadim.nasardinov>

Vadim Nasardinov wrote:

> In addition to these, Section 11.7 "ConnectionPoolDataSource
> Properties" (p. 78), defines these:
> 
>  TABLE 11-1  Standard Connection Pool Properties
> 
>  +------------------------------------------------------------------------+
>  |  Property Name  | Type |                  Description                  |
>  |-----------------+------+-----------------------------------------------|
>  | maxStatements   | int  | The total number of statements that the pool  |
>  |                 |      | should keep open. 0 (zero) indicates that     |
>  |                 |      | caching of statements is disabled.            |
>  |-----------------+------+-----------------------------------------------|
>  | initialPoolSize | int  | The number of physical connections the pool   |
>  |                 |      | should contain when it is created             |
>  |-----------------+------+-----------------------------------------------|
>  | minPoolSize     | int  | The number of physical connections the pool   |
>  |                 |      | should keep available at all times. 0 (zero)  |
>  |                 |      | indicates that connections should be created  |
>  |                 |      | as needed.                                    |
>  |-----------------+------+-----------------------------------------------|
>  | maxPoolSize     | int  | The maximum number of physical connections    |
>  |                 |      | that the pool should contain. 0 (zero)        |
>  |                 |      | indicates no maximum size.                    |
>  |-----------------+------+-----------------------------------------------|
>  | maxIdleTime     | int  | The number of seconds that a physical         |
>  |                 |      | connection should remain unused in the pool   |
>  |                 |      | before the connection is closed. 0 (zero)     |
>  |                 |      | indicates no limit.                           |
>  |-----------------+------+-----------------------------------------------|
>  | propertyCycle   | int  | The interval, in seconds, that the pool       |
>  |                 |      | should wait before enforcing the current      |
>  |                 |      | policy defined by the values of the above     |
>  |                 |      | connection pool properties                    |
>  +------------------------------------------------------------------------+

I never understood why these properties were there. The 
ConnectionPoolDataSource does not own and manage the connection pool 
(despite the misleading name) -- it just provides the primitives so that 
a pooling implementation can be built on top of it -- so why do the 
properties live there?

I wonder if it is a persistent typo in the spec, and those properties 
are actually meant to manage the statement pool, not the connection 
pool. That would make more sense since the statement pool lives entirely 
inside the datasource.

As it is, maxStatements is the only one that makes any sort of sense..

-O



view thread (5+ messages)

Message-ID: <41802A6D.10703@opencloud.com>
Permalink:  ../41802A6D.10703@opencloud.com/
Also on:    postgresql.org/message-id/41802A6D.10703@opencloud.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: oliver@opencloud.com, vadimn@redhat.com
  Subject: Re: summary of new features in JDBC 3.0
  In-Reply-To: <41802A6D.10703@opencloud.com>
  References: <200410271623.44895@vadim.nasardinov> <4180101C.7090500@opencloud.com> <200410271855.03938@vadim.nasardinov> <41802A6D.10703@opencloud.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