Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UA3Nn-0003RY-1i for pgsql-general@arkaria.postgresql.org; Mon, 25 Feb 2013 19:06:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UA3Nl-0006OE-RU for pgsql-general@arkaria.postgresql.org; Mon, 25 Feb 2013 19:06:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UA3NU-00069D-7a for pgsql-general@postgresql.org; Mon, 25 Feb 2013 19:06:20 +0000 Received: from mail-pa0-f41.google.com ([209.85.220.41]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UA3NR-0000aA-WA for pgsql-general@postgresql.org; Mon, 25 Feb 2013 19:06:19 +0000 Received: by mail-pa0-f41.google.com with SMTP id fb11so1934209pad.14 for ; Mon, 25 Feb 2013 11:06:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=bz6gV50LUWFkkNxz2fLZqztlc7mgUPB5nfk24L1aaQA=; b=wpzpSW/vT72HuJikHJvvlHeDtsG+n2LW9iQb16Ozh84WODegf8holfBbMc5SvAQC7w Vz+Geu8Kv1ivvscHf6iw/6bo8XVPyzIxfCQwryLWxAVOdyeAe/Tth0v296TUUXt3ya9s tuhGKV77Pp9dX4S8QYXEF0CtC7HnfQSuNif65w2TdkDymKTPCbOHM1YWFjO/uI/ahtFm bfw/aFrgvRC1OORMXknpC/05YUzchJRYeCBxHl4+rzo+UBRfcD+fkh6wj8RvQ+YhqvmR iy6OQljIlp4xw/HFp2GCcQUFDg7fHquO6ypA8sDy8SBU8fjwmuVshD2My+M/Gf+DjaeM JQtA== X-Received: by 10.66.192.98 with SMTP id hf2mr20437827pac.20.1361819176825; Mon, 25 Feb 2013 11:06:16 -0800 (PST) Received: from [192.168.0.153] (c-24-17-179-185.hsd1.wa.comcast.net. [24.17.179.185]) by mx.google.com with ESMTPS id km10sm13582737pbc.9.2013.02.25.11.06.15 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Feb 2013 11:06:16 -0800 (PST) Message-ID: <512BB626.9030202@gmail.com> Date: Mon, 25 Feb 2013 11:06:14 -0800 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: John R Pierce CC: pgsql-general@postgresql.org Subject: Re: Use, Set Catalog and JDBC questions References: <512BAE9A.2000401@gmail.com> <512BB4A6.5030409@hogranch.com> In-Reply-To: <512BB4A6.5030409@hogranch.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 02/25/2013 10:59 AM, John R Pierce wrote: > On 2/25/2013 10:34 AM, Adrian Klaver wrote: >> >> Not sure if this will do what want?: >> http://jdbc.postgresql.org/documentation/91/datasource.html#ds-intro > > a connection pool is something completely different. pools are used > when you have many client threads connecting and disconnecting to the > same database, you can use a pool to reduce the actual number of > connections by sharing a pool of ready-made connections. From here: http://jdbc.postgresql.org/documentation/91/ds-ds.html Table 11.2. DataSource Implementations Pooling Implementation Class No org.postgresql.ds.PGSimpleDataSource Yes org.postgresql.ds.PGPoolingDataSource There seems to a no pooling version that allows you to aggregate datasources. > > > -- Adrian Klaver adrian.klaver@gmail.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general